This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var upload = document.querySelector('.upload'); | |
upload.addEventListener("dragover", function( event ) { | |
this.classList.add('dragging'); | |
}, false); | |
upload.addEventListener("drop", function( event ) { | |
this.classList.remove('dragging'); | |
}, false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var lastScrollTop = 0; | |
$(window).scroll(function(event){ | |
var st = $(this).scrollTop(); | |
if (st > lastScrollTop){ | |
// downscroll code | |
} else { | |
// upscroll code | |
} | |
lastScrollTop = st; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
var menu = $("#nav-bar-filter"), | |
subMenu = $(".subfilter"), | |
more = $("#more-nav"), | |
parent = $(".filter-wrapper"), | |
ww = $(window).width(), | |
smw = more.outerWidth(); | |
menu.children("li").each(function() { | |
var w = $(this).outerWidth(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$().ready(function () { | |
//we reconstruct menu on window.resize | |
$(window).on("resize", function (e) { | |
var parentWidth = $("#nav-bar-filter").parent().width() - 40; | |
var ulWidth = $("#more-nav").outerWidth(); | |
var menuLi = $("#nav-bar-filter > li"); | |
var liForMoving = new Array(); | |
//take all elements that can't fit parent width to array | |
menuLi.each(function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@charset "utf-8"; | |
/* CSS Document */ | |
html, form { | |
width: 100%; | |
height: 100%; | |
} | |
body { | |
width: 100%; | |
height: 100%; | |
margin: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pageDivs = document.getElementsByClassName("extension-title"); | |
var text = ""; | |
for(i = 0; i < pageDivs.length;i++) | |
{ | |
text += pageDivs[i].textContent + "\r\n"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input:-webkit-autofill, | |
input:-webkit-autofill:hover, | |
input:-webkit-autofill:focus | |
input:-webkit-autofill, | |
textarea:-webkit-autofill, | |
textarea:-webkit-autofill:hover | |
textarea:-webkit-autofill:focus, | |
select:-webkit-autofill, | |
select:-webkit-autofill:hover, | |
select:-webkit-autofill:focus { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "PWA Title", | |
"short_name": "PWA Short Name", | |
"icons": [ | |
{ | |
"src": "pwa.png", | |
"type": "image/PNG", | |
"sizes": "144x144" | |
} | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
elemnt.scrollTop=elemnt.getBoundingClientRect().height; |