<script>
$(document).foundation({ equalizer : { equalize_on_stack: true } });
+ $(function(){
+ var animspeed = 900; // animation speed in milliseconds
+ var $blockquote = $('#extra');
+ var width = 250;
+ $("#extra").width(width);
+ var height = $blockquote.height()+30;
+ var origPageHeight = $(".inner-wrap").height();
+ $blockquote.attr('data-fullheight',height+'px');
+ $blockquote.attr('data-fullwidth',width+'px');
+ $blockquote.attr('data-miniheight','50px');
+ $blockquote.attr('data-miniwidth','50px');
+ $("#extra").height(0).width(0);
+ $("#extra").css('display','block');
+
+ // $(function() {
+ // $("#right-sidebar-expand").click(function(){
+ // $("#expand").animate({height:"300px", width:"300px"});
+ // });
+ // $("#right-sidebar-contract").click(function(){
+ // $("#expand").animate({height:"0px",width:"0px"});
+ // });
+ // });
+ $('#right-sidebar-expand').on('click', function(e){
+ if (height > $("main").height()) {
+
+ $(".inner-wrap").height(origPageHeight + (height - $("main").height()));
+
+ }
+ $("#extra").attr("display", "visible");
+ $("#extra").animate({
+ 'height': $("#extra").attr('data-fullheight'), 'width': $("#extra").attr('data-fullwidth')
+ }, animspeed);
+ $("#extra").css("box-shadow", "-2px 9px 7px 4px lightgrey").css("border-radius","7px 0 7px 7px");
+ $('#right-sidebar-contract').removeClass('hide');
+ $(this).addClass('hide');
+ });
+
+ $('#right-sidebar-contract').on('click', function(e){
+ $(".inner-wrap").height(origPageHeight);
+ $("#extra").animate({
+ 'height': $("#extra").attr('data-miniheight'), 'width': $("#extra").attr('data-miniwidth')
+ }, animspeed);
+ $("#extra").css("box-shadow", "0").css("border-radius","0");
+ $('#right-sidebar-expand').removeClass('hide');
+ $(this).addClass('hide');
+ });
+ });
+
$(function(){
var toggleSitelist = true;
$('#emmet').on('click',function(e) {
// });
});
-
-
</script>
- </body>
+ </body>
</html>
// $('#connect').css({'position' : position});
//});
//
-function get_footer_position() {
- return 'fixed';
+//function get_footer_position() {
+// return 'fixed';
// if ($(window).width() < 640) {
// $("#connect").css('padding-bottom','53px');
// return 'relative';
// function remove_the_arrow() {
// $('.sticky-footer-wrapper-class:after').css('border-width', '0');
// }
-}
+//}
// $('#connect').css({'position' : position});
//});
//
-function get_footer_position() {
- return 'fixed';
+//function get_footer_position() {
+// return 'fixed';
// if ($(window).width() < 640) {
// $("#connect").css('padding-bottom','53px');
// return 'relative';
// function remove_the_arrow() {
// $('.sticky-footer-wrapper-class:after').css('border-width', '0');
// }
-}
+//}