daily pastebin goal
85%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. $(window).load(function() {
  3.     console.log(checkcookiebar());
  4.  
  5.  
  6.     if (checkcookiebar()) {
  7.         var height = $('.page-wrap--cookie-permission').outerHeight();
  8.         $('#tsbadge4_db8d3657bdbe440c985ae127463eaad4').css('bottom', height + 'px');
  9.         console.log(height);
  10.     }
  11. });
  12.  
  13. $('.cookie-permission--accept-button').click(function(){
  14.     $('#tsbadge4_db8d3657bdbe440c985ae127463eaad4').css('bottom', '0');
  15.  
  16. });
  17.  
  18. function checkcookiebar(){
  19.     return $( '.page-wrap--cookie-permission' ).data("cookie-permission");
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top