Guest User

Untitled

a guest
Nov 15th, 2014
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(window).on('load', function(){
  2.     //---------------------------------//---------------------------------------------------------------------------------
  3.     //--- CUSTOMIZE INPUT TYPE DATE ---//
  4.     //---------------------------------//
  5.     webshims.setOptions('waitReady', false);
  6.     webshims.setOptions('forms-ext', {types: 'date'});
  7.     webshims.polyfill('forms forms-ext');
  8.    
  9.     createStoredFilesTable();
  10.  
  11.     $('#storedFilesButton').click(function(){      
  12.         //webshims.polyfill('forms forms-ext');
  13.  
  14.         createStoredFilesTable();
  15.        
  16.         $('#contentCont').css('background', 'url(pictures/background_blue.svg)');
  17.  
  18.         $('#UploadButton').hide();
  19.         $('#DragDrop').hide();
  20.         $('#storedFiles').show();
  21.     });
  22.    
  23.     $('#uploadFilesButton').click(function(){
  24.        
  25.         $('#contentCont').css('background', 'url(pictures/background_orange.svg)');
  26.        
  27.         $('#storedFiles').hide();
  28.  
  29.         if ('draggable' in document.createElement('span')) {
  30.             $("#UploadButton").hide();
  31.             $("#DragDrop").show();
  32.         } else {
  33.             $("#DragDrop").hide();
  34.             $("#UploadButton").show();
  35.         }
  36.     });
  37.    
  38.     $(".btn-group-vertical > .btn").click(function(){
  39.         $(this).addClass("active").siblings().removeClass("active");
  40.     });
  41. });
Advertisement
Add Comment
Please, Sign In to add comment