Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Gábor Papp
Added: Feb 6, 2018 6:10 PM
Modified: Feb 6, 2018 6:11 PM
Views: 8
Tags: no tags
  1. function dev(e) {
  2.     // console.log(" "+e.ctrlKey +" - "+ e.altKey +" - "+ e.keyCode);
  3.     if((e.ctrlKey && e.altKey && e.keyCode==68) || e.keyCode==118) { // CTRL + ALT + D  vagy F7
  4.         console.log("log: ");
  5.         $("#kimenet").toggle( "fast", function() {
  6.             if ($("#kimenet").css("display")=="block") {
  7.                 $("body").css("overflow","hidden");
  8.             } else {
  9.                 $("body").css("overflow","visible");
  10.             }
  11.         });
  12.     }
  13. }
  14.  
  15. $(function(){
  16.     $(document).keydown(function(e){
  17.         dev(e);
  18.     });
  19. });