Skip to content

Instantly share code, notes, and snippets.

View CSElliyas's full-sized avatar
🏠
Working from home

Elliyas Ahmed CSElliyas

🏠
Working from home
View GitHub Profile
(function() {
"use strict";
var config = {
// If the image gets within 50px in the Y axis, start the download.
rootMargin: "50px 0px",
threshold: 0.01
};
var observer;
//If we're using a browser without the IntersectionObserver (IE11, Safari 11), skip the lazy part and just load the resources
if ("IntersectionObserver" in window) {observer = new IntersectionObserver(onIntersection, config);}
/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.1",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},sl
/*! jQuery & Zepto Lazy v1.7.6 - http://jquery.eisbehr.de/lazy - MIT&GPL-2.0 license - Copyright 2012-2017 Daniel 'Eisbehr' Kern */
!function(t,e){"use strict";function r(r,a,i,u,l){function f(){L=t.devicePixelRatio>1,i=c(i),a.delay>=0&&setTimeout(function(){s(!0)},a.delay),(a.delay<0||a.combined)&&(u.e=v(a.throttle,function(t){"resize"===t.type&&(w=B=-1),s(t.all)}),u.a=function(t){t=c(t),i.push.apply(i,t)},u.g=function(){return i=n(i).filter(function(){return!n(this).data(a.loadedName)})},u.f=function(t){for(var e=0;e<t.length;e++){var r=i.filter(function(){return this===t[e]});r.length&&s(!1,r)}},s(),n(a.appendScroll).on("scroll."+l+" resize."+l,u.e))}function c(t){var i=a.defaultImage,o=a.placeholder,u=a.imageBase,l=a.srcsetAttribute,f=a.loaderAttribute,c=a._f||{};t=n(t).filter(function(){var t=n(this),r=m(this);return!t.data(a.handledName)&&(t.attr(a.attribute)||t.attr(l)||t.attr(f)||c[r]!==e)}).data("plugin_"+a.name,r);for(var s=0,d=t.length;s<d;s++){var A=n(t[s]),g=m(t[s]),h=A.attr(a.imageBaseAttribute)
function _extends(){return(_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t,e){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.LazyLoad=e()}(this,function(){"use strict";var t="undefined"!=typeof window,e=t&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),n=t&&"IntersectionObserver"in window,o=t&&"classList"in document.createElement("p"),r={elements_selector:"img",container:e||t?document:null,threshold:300,thresholds:null,data_src:"src",d
/*!
hey, [be]Lazy.js - v1.8.2 - 2016.10.25
A fast, small and dependency free lazy load script (https://github.com/dinbror/blazy)
(c) Bjoern Klinggaard - @bklinggaard - http://dinbror.dk/blazy
*/
(function(q,m){"function"===typeof define&&define.amd?define(m):"object"===typeof exports?module.exports=m():q.Blazy=m()})(this,function(){function q(b){var c=b._util;c.elements=E(b.options);c.count=c.elements.length;c.destroyed&&(c.destroyed=!1,b.options.container&&l(b.options.container,function(a){n(a,"scroll",c.validateT)}),n(window,"resize",c.saveViewportOffsetT),n(window,"resize",c.validateT),n(window,"scroll",c.validateT));m(b)}function m(b){for(var c=b._util,a=0;a<c.count;a++){var d=c.elements[a],e;a:{var g=d;e=b.options;var p=g.getBoundingClientRect();if(e.container&&y&&(g=g.closest(e.containerClass))){g=g.getBoundingClientRect();e=r(g,f)?r(p,{top:g.top-e.offset,right:g.right+e.offset,bottom:g.bottom+e.offset,left:g.left-e.offset}):!1;break a}e=r(p,f)}if(e||t(d,b.options.successClass))b.load(d),c.eleme
//Bangla calendar added to "Basic Calendar Java Script" -By Brian Gosselin @ http://scriptasylum.com
//and Bangla calendar created by Uttam Singha @ http://www.usingha.com
var mn = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
function buildCal(m, y, cM, cH, cDW, cD, brdr){
var bnum=['&#2535;']
var dim=[31,0,31,30,31,30,31,31,30,31,30,31];
var oD = new Date(y, m-1, 1); //DD replaced line to fix date bug when current day is 31st
oD.setTime(oD.getTime() + (oD.getTimezoneOffset() + 360) * 60 * 1000);
var bcal = Bangla_Date(y, m, 25);
!function(t){t.fn.bongabdo=function(e){e&&e.date&&(e.date=new Date(e.date));var a=t.extend({date:new Date,displayLanguage:"bangla",dayStartsAt:"sunrise",showSeason:!1,showWeekDays:!1,format:"DD MM, YY"},e),r=["বৈশাখ","জ্যৈষ্ঠ","আষাঢ়","শ্রাবণ","ভাদ্র","আশ্বিন","কার্তিক","অগ্রহায়ণ","পৌষ","মাঘ","ফাল্গুন","চৈত্র"],n=["রবিবার","সোমবার","মঙ্গলবার","বুধবার","বৃহস্পতিবার","শুক্রবার","শনিবার"],o=["গ্রীষ্ম","বর্ষা","শরৎ","হেমন্ত","শীত","বসন্ত"],i=[31,31,31,31,31,30,30,30,30,30,30,30];function s(t){var e,a=(t=t.addHours(-6)).getDate(),s=t.getMonth(),g=t.getFullYear(),u=t.getDay();((e=g)%4==0&&e%100!=0||e%400==0)&&(i[10]=31),(s<3||3===s&&a<14)&&(g-=1);for(var h,l,d,D,c=new Date(g+"-04-13"),f=g-593,y=(h=c,l=t,d=Date.UTC(h.getFullYear(),h.getMonth(),h.getDate()),D=Date.UTC(l.getFullYear(),l.getMonth(),l.getDate()),Math.floor((D-d)/864e5)),p=0,M=0;M<r.length;M++){if(y<=i[M]){p=M;break}y-=i[M]}var v=y,S=o[Math.floor(p/2)];return{year:f,date:v,month:r[p],day:n[u],season:S}}return Date.prototype.addHours=function(t){return t
var IE=document.all?1:0,LCUNI=0,LC=0,LC_KAR=0,LC_STRING="",EnglishKeyboard=!1,KeyBoardLayout=2,ctl_v_conversion=!1,Avro_Cha_Flag=!1,Avro_A_Press_Flag=!1,bijoy_keyboard_map={0:"০",1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",a:"ৃ",A:"র্",d:"ি",D:"ী",s:"ু",S:"ূ",f:"া",F:"অ",g:"্",G:"।",h:"ব",H:"ভ",j:"ক",J:"খ",k:"ত",K:"থ",l:"দ",L:"ধ",z:"্র",Z:"্য",x:"ও",X:"ৗ",c:"ে",C:"ৈ",v:"র",V:"ল",b:"ন",B:"ণ",n:"স",N:"ষ",m:"ম",M:"শ",q:"ঙ",Q:"ং",w:"য",W:"য়",e:"ড",E:"ঢ",r:"প",R:"ফ",t:"ট",T:"ঠ",y:"চ",Y:"ছ",u:"জ",U:"ঝ",i:"হ",I:"ঞ",o:"গ",O:"ঘ",p:"ড়",P:"ঢ়","&":"ঁ",$:"৳","`":"‌","~":"‍","\\":"ৎ","|":"ঃ"},somewherein_phonetic_keyboard_map={0:"০",1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",a:"া",A:"আ",d:"ড",D:"দ",s:"স",S:"ষ",f:"ফ",F:"ঋ",g:"গ",G:"ঘ",h:"হ",H:"ঃ",j:"জ",J:"ঝ",k:"ক",K:"খ",l:"ল",L:"খ",z:"য",Z:"ত",x:"ক্স",X:"ঢ",c:"চ",C:"ছ",v:"ভ",V:"ঠ",b:"ব",B:"ই",n:"ন",N:"ণ",m:"ম",M:"গ",q:"য়",Q:"ছ",w:"ৃ",W:"ঋ",e:"ে",E:"এ",r:"র",R:"ড়",t:"ট",T:"ত",y:"য়",Y:"্য",u:"ু",U:"উ",i:"ি",I:"ই",o:"ো",O:"ও",p:"প",P:"চ","&":"্",$:"৳","+":
function Insert(e,n){if(document.selection)e.focus(),sel=document.selection.createRange(),sel.text=n,sel.collapse(!0),sel.select();else if(e.selectionStart||"0"==e.selectionStart){var t=e.selectionStart,l=e.selectionEnd,o=e.scrollTop;t=-1==t?e.value.length:t,e.value=e.value.substring(0,t)+n+e.value.substring(l,e.value.length),e.focus(),e.selectionStart=t+n.length,e.selectionEnd=t+n.length,e.scrollTop=o}else{o=e.scrollTop;e.value+=value,e.focus(),e.scrollTop=o}}function RemoveNInsert(e,n,t){if(document.selection)e.focus(),sel=document.selection.createRange(),e.value.length>=t&&sel.moveStart("character",-1*t),sel.text=n,sel.collapse(!0),sel.select();else if(e.selectionStart||0==e.selectionStart){e.focus();var l=e.selectionStart-t,o=e.selectionEnd,s=e.scrollTop;l=-1==l?e.value.length:l,e.value=e.value.substring(0,l)+n+e.value.substring(o,e.value.length),e.focus(),e.selectionStart=l+n.length,e.selectionEnd=l+n.length,e.scrollTop=s}else{s=e.scrollTop;e.value+=n,e.focus(),e.scrollTop=s}}function capsDetect(e){if(e|
!function(){"use strict";function t(){return"cf-marker-"+Math.random().toString().slice(2)}function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];(n=console.warn||console.log).call.apply(n,[console,"[ROCKET LOADER] "].concat(t));var n}function n(t,e){var n=e.parentNode;n&&f(t,n,e)}function r(t,e){f(t,e,e.childNodes[0])}function o(t){var e=t.parentNode;e&&e.removeChild(t)}function i(t){var e=t.namespaceURI===P?"xlink:href":"src";return t.getAttribute(e)}function a(t){return!(t.type&&!E[t.type.trim()])&&((!A||!t.hasAttribute("nomodule"))&&!(!A&&"module"===t.type))}function c(t,e){return function(n){if(e(),t)return t.call(this,n)}}function s(t,e){t.onload=c(t.onload,e),t.onerror=c(t.onerror,e)}function u(t){var e=document.createElementNS(t.namespaceURI,"script");e.async=t.hasAttribute("async"),e.textContent=t.textContent;for(var n=0;n<t.attributes.length;n++){var r=t.attributes[n];r.namespaceURI?e.setAttributeNS(r.namespaceURI,r.name,r.value):e.setAttribute(r.name,r.value)}return e}function p(t,e