~vlad-lesin/percona-server/5.5-slow_log_stored_procs

« back to all changes in this revision

Viewing changes to doc/source/percona-theme/static/percona.com.js

  • Committer: Hrvoje Matijakovic
  • Date: 2012-03-27 12:37:51 UTC
  • mfrom: (226.1.1 new-theme-5.5)
  • Revision ID: hrvoje.matijakovic@percona.com-20120327123751-d0u42trp8eintcpg
* merged lp:~hrvojem/percona-server/new-theme-5.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
240
240
        });
241
241
    }
242
242
};
 
243
 
 
244
$(document).ready(function(){
 
245
        $(window).bind("resize", resizeWindow);
 
246
        resizeWindow();
 
247
        function resizeWindow() {
 
248
                var win_w = $(window).width();
 
249
                var ribon = $("#support-ribbon");
 
250
                if(win_w < 1265){
 
251
                        if(/mobile/i.test(navigator.userAgent)){
 
252
                                ribon.hide();
 
253
                        }else{
 
254
                                if(ribon.hasClass("vertical")){
 
255
                                        ribon.removeClass("vertical");
 
256
                                        ribon.addClass("horizontal");
 
257
                                }
 
258
                                ribon.css({"left":'50%', "margin-left": '-'+(ribon.width() / 2)+'px'});
 
259
                        }
 
260
                }else{
 
261
                        if(ribon.hasClass("horizontal")){
 
262
                                ribon.addClass("vertical");
 
263
                                ribon.removeClass("horizontal");
 
264
                                ribon.removeAttr("style");
 
265
                        }
 
266
 
 
267
                }
 
268
        }
 
269
});
 
 
b'\\ No newline at end of file'