Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function() {
- var script = document.createElement("script");
- script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js';
- script.type = 'text/javascript';
- document.getElementsByTagName("head")[0].appendChild(script);
- // Poll for jQuery to come into existance
- var checkReady = function(callback) {
- if (window.jQuery) {
- callback(jQuery);
- }
- else {
- window.setTimeout(function() { checkReady(callback); }, 100);
- }
- };
- // Start polling...
- checkReady(function($) {
- addGoogleFont("Montserrat");
- //addCss("//pastebin.com/raw/ta0JSDbM");
- setTimeout(function() {
- resizeDivs();
- }, 500);
- $("body").click(function() {resizeDivs()});
- });
- })();
- window.onresize = function(event) {
- resizeDivs();
- }
- function resizeDivs() {
- $(".chip").width($(".tg-col-eventwrapper").width()+3);
- }
- function addGoogleFont(fontName) {
- $("head").append("<link href='//fonts.googleapis.com/css?family=" + fontName + "' rel='stylesheet' type='text/css'>");
- }
- /*
- function addCss(cssFile) {
- $('head').append("<link rel='stylesheet' href='" + cssFile + "' type='text/css' />");
- }
- */
Add Comment
Please, Sign In to add comment