phcthemes_web_theme_pack 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,31 @@
1
+ // Avoid `console` errors in browsers that lack a console.
2
+ (function() {
3
+ var method;
4
+ var noop = function () {};
5
+ var methods = [
6
+ 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
7
+ 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
8
+ 'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
9
+ 'timeline', 'timelineEnd', 'timeStamp', 'trace', 'warn'
10
+ ];
11
+ var length = methods.length;
12
+ var console = (window.console = window.console || {});
13
+
14
+ while (length--) {
15
+ method = methods[length];
16
+
17
+ // Only stub undefined methods.
18
+ if (!console[method]) {
19
+ console[method] = noop;
20
+ }
21
+ }
22
+ }());
23
+
24
+ // Place any jQuery/helper plugins in here.
25
+
26
+ // xs-nav menu
27
+ !function(n,e,i,s){n.xs_nav=function(a,t){var o={responsive:!0,mobileBreakpoint:767,showDuration:300,hideDuration:300,showDelayDuration:0,hideDelayDuration:0,submenuTrigger:"hover",effect:"fade",submenuIndicator:!0,submenuIndicatorTrigger:!1,hideSubWhenGoOut:!0,visibleSubmenusOnMobile:!1,overlay:!0,overlayColor:"rgba(0, 0, 0, 0.7)",hidden:!1,hiddenOnMobile:!1,offCanvasSide:"left",offCanvasCloseButton:!0,animationOnShow:"",animationOnHide:"",hideScrollBar:!0,onInit:function(){},onLandscape:function(){},onPortrait:function(){},onShowOffCanvas:function(){},onHideOffCanvas:function(){}},r=this,u=Number.MAX_VALUE,d=1,l="click.nav touchstart.nav",c="mouseenter focusin",f="mouseleave focusout";r.settings={};var a=(n(a),a);n(a).find(".nav-search").length>0&&n(a).find(".nav-search").find("form").prepend("<span class='nav-search-close-button' tabindex='0'>&#10005;</span>"),r.init=function(){r.settings=n.extend({},o,t),r.settings.offCanvasCloseButton&&n(a).find(".nav-menus-wrapper").prepend("<span class='nav-menus-wrapper-close-button'>&#10005;</span>"),"right"==r.settings.offCanvasSide&&n(a).find(".nav-menus-wrapper").addClass("nav-menus-wrapper-right"),r.settings.hidden&&(n(a).addClass("xs_nav-hidden"),r.settings.mobileBreakpoint=99999),v(),n(a).find(".nav-toggle").on("click touchstart",function(n){n.stopPropagation(),n.preventDefault(),r.showOffcanvas(),t!==s&&r.callback("onShowOffCanvas")}),n(a).find(".nav-menus-wrapper-close-button").on("click touchstart",function(){r.hideOffcanvas(),t!==s&&r.callback("onHideOffCanvas")}),n(a).find(".nav-search-button, .nav-search-close-button").on("click touchstart keydown",function(e){e.stopPropagation(),e.preventDefault();var i=e.keyCode||e.which;"click"===e.type||"touchstart"===e.type||"keydown"===e.type&&13==i?r.toggleSearch():9==i&&n(e.target).blur()}),n(e).resize(function(){r.initxs_navMode(C()),O(),r.settings.hiddenOnMobile&&m()}),r.initxs_navMode(C()),r.settings.hiddenOnMobile&&m(),r.settings.overlay&&n(a).append("<div class='nav-overlay-panel'></div>"),n(a).find(".megamenu-tabs").length>0&&y(),t!==s&&r.callback("onInit")};var h=function(){n(a).find(".nav-submenu").hide(0),n(a).find("li").removeClass("focus")},v=function(){n(a).find("li").each(function(){n(this).children(".nav-dropdown,.megamenu-panel").length>0&&(n(this).children(".nav-dropdown,.megamenu-panel").addClass("nav-submenu"),r.settings.submenuIndicator&&n(this).children("a").append("<span class='submenu-indicator'><span class='submenu-indicator-chevron'></span></span>"))})},m=function(){n(a).hasClass("xs_nav-portrait")?n(a).addClass("xs_nav-hidden"):n(a).removeClass("xs_nav-hidden")};r.showSubmenu=function(e,i){C()>r.settings.mobileBreakpoint&&n(a).find(".nav-search").find("form").fadeOut(),"fade"==i?n(e).children(".nav-submenu").stop(!0,!0).delay(r.settings.showDelayDuration).fadeIn(r.settings.showDuration).removeClass(r.settings.animationOnHide).addClass(r.settings.animationOnShow):n(e).children(".nav-submenu").stop(!0,!0).delay(r.settings.showDelayDuration).slideDown(r.settings.showDuration).removeClass(r.settings.animationOnHide).addClass(r.settings.animationOnShow),n(e).addClass("focus")},r.hideSubmenu=function(e,i){"fade"==i?n(e).find(".nav-submenu").stop(!0,!0).delay(r.settings.hideDelayDuration).fadeOut(r.settings.hideDuration).removeClass(r.settings.animationOnShow).addClass(r.settings.animationOnHide):n(e).find(".nav-submenu").stop(!0,!0).delay(r.settings.hideDelayDuration).slideUp(r.settings.hideDuration).removeClass(r.settings.animationOnShow).addClass(r.settings.animationOnHide),n(e).removeClass("focus").find(".focus").removeClass("focus")};var p=function(){r.settings.hideScrollBar&&n("body").addClass("no-scroll"),r.settings.overlay&&n(a).find(".nav-overlay-panel").css("background-color",r.settings.overlayColor).fadeIn(300).on("click touchstart",function(){r.hideOffcanvas()})},b=function(){r.settings.hideScrollBar&&n("body").removeClass("no-scroll"),r.settings.overlay&&n(a).find(".nav-overlay-panel").fadeOut(400)};r.showOffcanvas=function(){p(),"left"==r.settings.offCanvasSide?n(a).find(".nav-menus-wrapper").css("transition-property","left").addClass("nav-menus-wrapper-open"):n(a).find(".nav-menus-wrapper").css("transition-property","right").addClass("nav-menus-wrapper-open")},r.hideOffcanvas=function(){n(a).find(".nav-menus-wrapper").removeClass("nav-menus-wrapper-open").on("webkitTransitionEnd moztransitionend transitionend oTransitionEnd",function(){n(a).find(".nav-menus-wrapper").css("transition-property","none").off()}),b()},r.toggleOffcanvas=function(){C()<=r.settings.mobileBreakpoint&&(n(a).find(".nav-menus-wrapper").hasClass("nav-menus-wrapper-open")?(r.hideOffcanvas(),t!==s&&r.callback("onHideOffCanvas")):(r.showOffcanvas(),t!==s&&r.callback("onShowOffCanvas")))},r.toggleSearch=function(){"none"==n(a).find(".nav-search").find("form").css("display")?(n(a).find(".nav-search").find("form").fadeIn(200),n(a).find(".nav-search").find("input").focus()):(n(a).find(".nav-search").find("form").fadeOut(200),n(a).find(".nav-search").find("input").blur())},r.initxs_navMode=function(e){r.settings.responsive?(e<=r.settings.mobileBreakpoint&&u>r.settings.mobileBreakpoint&&(n(a).addClass("xs_nav-portrait").removeClass("xs_nav-landscape"),S(),t!==s&&r.callback("onPortrait")),e>r.settings.mobileBreakpoint&&d<=r.settings.mobileBreakpoint&&(n(a).addClass("xs_nav-landscape").removeClass("xs_nav-portrait"),k(),b(),r.hideOffcanvas(),t!==s&&r.callback("onLandscape")),u=e,d=e):(n(a).addClass("xs_nav-landscape"),k(),t!==s&&r.callback("onLandscape"))};var g=function(){n("html").on("click.body touchstart.body",function(e){0===n(e.target).closest(".xs_nav").length&&(n(a).find(".nav-submenu").fadeOut(),n(a).find(".focus").removeClass("focus"),n(a).find(".nav-search").find("form").fadeOut())})},C=function(){return e.innerWidth||i.documentElement.clientWidth||i.body.clientWidth},w=function(e){"landscape"==e?n(a).find(".nav-menu").find("li, a").off(l):n(a).find(".nav-menu").find("li, a").off(c).off(f)},O=function(){if(C()>r.settings.mobileBreakpoint){var e=n(a).outerWidth();n(a).find(".nav-menu").children("li").children(".nav-submenu").each(function(){n(this).parent().position().left+n(this).outerWidth()>e?n(this).css("right",0):n(this).css("right","auto")})}},y=function(){function e(e){var i=n(e).children(".megamenu-tabs-nav").children("li"),s=n(e).children(".megamenu-tabs-pane");n(i).on("mouseenter.tabs click.tabs touchstart.tabs",function(e){e.stopPropagation(),e.preventDefault(),n(i).removeClass("active"),n(this).addClass("active"),n(s).hide(0).removeClass("active"),n(s[n(this).index()]).show(0).addClass("active")})}if(n(a).find(".megamenu-tabs").length>0)for(var i=n(a).find(".megamenu-tabs"),s=0;s<i.length;s++)e(i[s])},k=function(){w("landscape"),h(),navigator.userAgent.match(/Mobi/i)||navigator.maxTouchPoints>0||"click"==r.settings.submenuTrigger?n(a).find(".nav-menu, .nav-dropdown").children("li").children("a").on(l,function(i){if(r.hideSubmenu(n(this).parent("li").siblings("li"),r.settings.effect),n(this).closest(".nav-menu").siblings(".nav-menu").find(".nav-submenu").fadeOut(r.settings.hideDuration),n(this).siblings(".nav-submenu").length>0){if(i.stopPropagation(),i.preventDefault(),"none"==n(this).siblings(".nav-submenu").css("display"))return r.showSubmenu(n(this).parent("li"),r.settings.effect),O(),!1;if(r.hideSubmenu(n(this).parent("li"),r.settings.effect),"_blank"===n(this).attr("target")||"blank"===n(this).attr("target"))e.open(n(this).attr("href"));else{if("#"===n(this).attr("href")||""===n(this).attr("href")||"javascript:void(0)"===n(this).attr("href"))return!1;e.location.href=n(this).attr("href")}}}):n(a).find(".nav-menu").find("li").on(c,function(){r.showSubmenu(this,r.settings.effect),O()}).on(f,function(){r.hideSubmenu(this,r.settings.effect)}),r.settings.hideSubWhenGoOut&&g()},S=function(){w("portrait"),h(),r.settings.visibleSubmenusOnMobile?n(a).find(".nav-submenu").show(0):(n(a).find(".submenu-indicator").removeClass("submenu-indicator-up"),r.settings.submenuIndicator&&r.settings.submenuIndicatorTrigger?n(a).find(".submenu-indicator").on(l,function(e){return e.stopPropagation(),e.preventDefault(),r.hideSubmenu(n(this).parent("a").parent("li").siblings("li"),"slide"),r.hideSubmenu(n(this).closest(".nav-menu").siblings(".nav-menu").children("li"),"slide"),"none"==n(this).parent("a").siblings(".nav-submenu").css("display")?(n(this).addClass("submenu-indicator-up"),n(this).parent("a").parent("li").siblings("li").find(".submenu-indicator").removeClass("submenu-indicator-up"),n(this).closest(".nav-menu").siblings(".nav-menu").find(".submenu-indicator").removeClass("submenu-indicator-up"),r.showSubmenu(n(this).parent("a").parent("li"),"slide"),!1):(n(this).parent("a").parent("li").find(".submenu-indicator").removeClass("submenu-indicator-up"),void r.hideSubmenu(n(this).parent("a").parent("li"),"slide"))}):n(a).find(".nav-menu, .nav-dropdown").children("li").children("a").each(function(){n(this).siblings(".nav-submenu").length>0&&n(this).on(l,function(i){if(i.stopPropagation(),i.preventDefault(),r.hideSubmenu(n(this).parent("li").siblings("li"),r.settings.effect),r.hideSubmenu(n(this).closest(".nav-menu").siblings(".nav-menu").children("li"),"slide"),"none"==n(this).siblings(".nav-submenu").css("display"))return n(this).children(".submenu-indicator").addClass("submenu-indicator-up"),n(this).parent("li").siblings("li").find(".submenu-indicator").removeClass("submenu-indicator-up"),n(this).closest(".nav-menu").siblings(".nav-menu").find(".submenu-indicator").removeClass("submenu-indicator-up"),r.showSubmenu(n(this).parent("li"),"slide"),!1;if(n(this).parent("li").find(".submenu-indicator").removeClass("submenu-indicator-up"),r.hideSubmenu(n(this).parent("li"),"slide"),"_blank"===n(this).attr("target")||"blank"===n(this).attr("target"))e.open(n(this).attr("href"));else{if("#"===n(this).attr("href")||""===n(this).attr("href")||"javascript:void(0)"===n(this).attr("href"))return!1;e.location.href=n(this).attr("href")}})}))};r.callback=function(n){t[n]!==s&&t[n].call(a)},r.init()},n.fn.xs_nav=function(e){return this.each(function(){if(s===n(this).data("xs_nav")){var i=new n.xs_nav(this,e);n(this).data("xs_nav",i)}})}}(jQuery,window,document);
28
+
29
+ /*! WOW - v1.0.2 - 2014-09-24
30
+ * Copyright (c) 2014 Matthieu Aussaguel; Licensed MIT */
31
+ (function(){var a,b,c,d,e,f=function(a,b){return function(){return a.apply(b,arguments)}},g=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a.prototype.addEvent=function(a,b,c){return null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c},a.prototype.removeEvent=function(a,b,c){return null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]},a.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},a}(),c=this.WeakMap||this.MozWeakMap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(a=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}()),d=this.getComputedStyle||function(a){return this.getPropertyValue=function(b){var c;return"float"===b&&(b="styleFloat"),e.test(b)&&b.replace(e,function(a,b){return b.toUpperCase()}),(null!=(c=a.currentStyle)?c[b]:void 0)||null},this},e=/(\-([a-z]){1})/g,this.WOW=function(){function e(a){null==a&&(a={}),this.scrollCallback=f(this.scrollCallback,this),this.scrollHandler=f(this.scrollHandler,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),this.animationNameCache=new c}return e.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0},e.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.querySelectorAll("."+this.config.boxClass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else{for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applyStyle(b,!0);this.util().addEvent(window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)}return this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],e=0,f=b.length;f>e;e++)d=b[e],g.push(function(){var a,b,e,f;for(e=d.addedNodes||[],f=[],a=0,b=e.length;b>a;a++)c=e[a],f.push(this.doSync(c));return f}.call(a));return g}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},e.prototype.sync=function(){return a.notSupported?this.doSync(this.element):void 0},e.prototype.doSync=function(a){var b,c,d,e,f;if(null==a&&(a=this.element),1===a.nodeType){for(a=a.parentNode||a,e=a.querySelectorAll("."+this.config.boxClass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.boxes.push(b),this.all.push(b),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(b,!0),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototype.show=function(a){return this.applyStyle(a),a.className=""+a.className+" "+this.config.animateClass},e.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},e.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),e.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.style.visibility="visible");return e},e.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a},e.prototype.vendors=["moz","webkit"],e.prototype.vendorSet=function(a,b){var c,d,e,f;f=[];for(c in b)d=b[c],a[""+c]=d,f.push(function(){var b,f,g,h;for(g=this.vendors,h=[],b=0,f=g.length;f>b;b++)e=g[b],h.push(a[""+e+c.charAt(0).toUpperCase()+c.substr(1)]=d);return h}.call(this));return f},e.prototype.vendorCSS=function(a,b){var c,e,f,g,h,i;for(e=d(a),c=e.getPropertyCSSValue(b),i=this.vendors,g=0,h=i.length;h>g;g++)f=i[g],c=c||e.getPropertyCSSValue("-"+f+"-"+b);return c},e.prototype.animationName=function(a){var b;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=d(a).getPropertyValue("animation-name")}return"none"===b?"":b},e.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},e.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},e.prototype.scrollHandler=function(){return this.scrolled=!0},e.prototype.scrollCallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},e.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},e.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=window.pageYOffset,e=f+Math.min(this.element.clientHeight,this.util().innerHeight())-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},e.prototype.util=function(){return null!=this._util?this._util:this._util=new b},e.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},e}()}).call(this);
@@ -0,0 +1,140 @@
1
+ /**
2
+ * @name Shuffle Letters
3
+ * @author Martin Angelov
4
+ * @version 1.0
5
+ * @url http://tutorialzine.com/2011/09/shuffle-letters-effect-jquery/
6
+ * @license MIT License
7
+ */
8
+
9
+ (function($){
10
+
11
+ $.fn.shuffleLetters = function(prop){
12
+
13
+ var options = $.extend({
14
+ "step" : 8, // How many times should the letters be changed
15
+ "fps" : 25, // Frames Per Second
16
+ "text" : "", // Use this text instead of the contents
17
+ "callback" : function(){} // Run once the animation is complete
18
+ },prop)
19
+
20
+ return this.each(function(){
21
+
22
+ var el = $(this),
23
+ str = "";
24
+
25
+
26
+ // Preventing parallel animations using a flag;
27
+
28
+ if(el.data('animated')){
29
+ return true;
30
+ }
31
+
32
+ el.data('animated',true);
33
+
34
+
35
+ if(options.text) {
36
+ str = options.text.split('');
37
+ }
38
+ else {
39
+ str = el.text().split('');
40
+ }
41
+
42
+ // The types array holds the type for each character;
43
+ // Letters holds the positions of non-space characters;
44
+
45
+ var types = [],
46
+ letters = [];
47
+
48
+ // Looping through all the chars of the string
49
+
50
+ for(var i=0;i<str.length;i++){
51
+
52
+ var ch = str[i];
53
+
54
+ if(ch == " "){
55
+ types[i] = "space";
56
+ continue;
57
+ }
58
+ else if(/[a-z]/.test(ch)){
59
+ types[i] = "lowerLetter";
60
+ }
61
+ else if(/[A-Z]/.test(ch)){
62
+ types[i] = "upperLetter";
63
+ }
64
+ else {
65
+ types[i] = "symbol";
66
+ }
67
+
68
+ letters.push(i);
69
+ }
70
+
71
+ el.html("");
72
+
73
+ // Self executing named function expression:
74
+
75
+ (function shuffle(start){
76
+
77
+ // This code is run options.fps times per second
78
+ // and updates the contents of the page element
79
+
80
+ var i,
81
+ len = letters.length,
82
+ strCopy = str.slice(0); // Fresh copy of the string
83
+
84
+ if(start>len){
85
+
86
+ // The animation is complete. Updating the
87
+ // flag and triggering the callback;
88
+
89
+ el.data('animated',false);
90
+ options.callback(el);
91
+ return;
92
+ }
93
+
94
+ // All the work gets done here
95
+ for(i=Math.max(start,0); i < len; i++){
96
+
97
+ // The start argument and options.step limit
98
+ // the characters we will be working on at once
99
+
100
+ if( i < start+options.step){
101
+ // Generate a random character at thsi position
102
+ strCopy[letters[i]] = randomChar(types[letters[i]]);
103
+ }
104
+ else {
105
+ strCopy[letters[i]] = "";
106
+ }
107
+ }
108
+
109
+ el.text(strCopy.join(""));
110
+
111
+ setTimeout(function(){
112
+
113
+ shuffle(start+1);
114
+
115
+ },1000/options.fps);
116
+
117
+ })(-options.step);
118
+
119
+
120
+ });
121
+ };
122
+
123
+ function randomChar(type){
124
+ var pool = "";
125
+
126
+ if (type == "lowerLetter"){
127
+ pool = "abcdefghijklmnopqrstuvwxyz0123456789";
128
+ }
129
+ else if (type == "upperLetter"){
130
+ pool = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
131
+ }
132
+ else if (type == "symbol"){
133
+ pool = ",.?/\\(^)![]{}*&^%$#'\"";
134
+ }
135
+
136
+ var arr = pool.split('');
137
+ return arr[Math.floor(Math.random()*arr.length)];
138
+ }
139
+
140
+ })(jQuery);
@@ -0,0 +1,130 @@
1
+ /**
2
+ * Tweetie: A simple Twitter feed plugin
3
+ * Author: Sonny T. <hi@sonnyt.com>, sonnyt.com
4
+ */
5
+
6
+ (function ($) {
7
+ 'use strict';
8
+
9
+ $.fn.twittie = function () {
10
+ var options = (arguments[0] instanceof Object) ? arguments[0] : {},
11
+ callback = (typeof arguments[0] === 'function') ? arguments[0] : arguments[1];
12
+
13
+ // Default settings
14
+ var settings = $.extend({
15
+ 'username': null,
16
+ 'list': null,
17
+ 'hashtag': null,
18
+ 'count': 10,
19
+ 'hideReplies': false,
20
+ 'dateFormat': '%b/%d/%Y',
21
+ 'template': '{{date}} - {{tweet}}',
22
+ 'apiPath' : 'assets/api/tweet.php',
23
+ 'loadingText': 'Loading...'
24
+ }, options);
25
+
26
+ if (settings.list && !settings.username) {
27
+ $.error('If you want to fetch tweets from a list, you must define the username of the list owner.');
28
+ }
29
+
30
+ /**
31
+ * Applies @reply, #hash and http links
32
+ * @param {String} tweet A single tweet
33
+ * @return {String} Fixed tweet
34
+ *
35
+ * Thanks to @Wachem enhanced linking.
36
+ */
37
+ var linking = function (tweet) {
38
+ var twit = tweet.replace(/(https?:\/\/([-\w\.]+)+(:\d+)?(\/([\w\/_\.]*(\?\S+)?)?)?)/ig,'<a href="$1" target="_blank" title="Visit this link">$1</a>')
39
+ .replace(/#([a-zA-Z0-9_]+)/g,'<a href="https://twitter.com/search?q=%23$1&amp;src=hash" target="_blank" title="Search for #$1">#$1</a>')
40
+ .replace(/@([a-zA-Z0-9_]+)/g,'<a href="https://twitter.com/$1" target="_blank" title="$1 on Twitter">@$1</a>');
41
+
42
+ return twit;
43
+ };
44
+
45
+ /**
46
+ * Formating a date
47
+ * @param {String} twt_date Twitter date
48
+ * @return {String} Formatted date
49
+ */
50
+ var dating = function (twt_date) {
51
+ // fix for IE
52
+ var time = twt_date.split(' ');
53
+ twt_date = new Date(Date.parse(time[1] + ' ' + time[2] + ', ' + time[5] + ' ' + time[3] + ' UTC'));
54
+
55
+ var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
56
+
57
+ var _date = {
58
+ '%d': twt_date.getDate(),
59
+ '%m': twt_date.getMonth()+1,
60
+ '%b': months[twt_date.getMonth()].substr(0, 3),
61
+ '%B': months[twt_date.getMonth()],
62
+ '%y': String(twt_date.getFullYear()).slice(-2),
63
+ '%Y': twt_date.getFullYear()
64
+ };
65
+
66
+ var date = settings.dateFormat;
67
+ var format = settings.dateFormat.match(/%[dmbByY]/g);
68
+
69
+ for (var i = 0, len = format.length; i < len; i++) {
70
+ date = date.replace(format[i], _date[format[i]]);
71
+ }
72
+
73
+ return date;
74
+ };
75
+
76
+ /**
77
+ * Templating a tweet using '{{ }}' braces
78
+ * @param {Object} data Tweet details are passed
79
+ * @return {String} Templated string
80
+ */
81
+ var templating = function (data) {
82
+ var temp = settings.template;
83
+ var temp_variables = ['date', 'tweet', 'avatar', 'url', 'retweeted', 'screen_name', 'user_name'];
84
+
85
+ for (var i = 0, len = temp_variables.length; i < len; i++) {
86
+ temp = temp.replace(new RegExp('{{' + temp_variables[i] + '}}', 'gi'), data[temp_variables[i]]);
87
+ }
88
+
89
+ return temp;
90
+ };
91
+
92
+ // Set loading
93
+ this.html('<span>'+settings.loadingText+'</span>');
94
+
95
+ var that = this;
96
+
97
+ // Fetch tweets
98
+ $.getJSON(settings.apiPath, { username: settings.username, list: settings.list, hashtag: settings.hashtag, count: settings.count, exclude_replies: settings.hideReplies }, function (twt) {
99
+ that.find('span').fadeOut('fast', function () {
100
+ that.html('<ul></ul>');
101
+
102
+ for (var i = 0; i < settings.count; i++) {
103
+ var tweet = false;
104
+ if(twt[i]) {
105
+ tweet = twt[i];
106
+ } else if(twt.statuses !== undefined && twt.statuses[i]) {
107
+ tweet = twt.statuses[i];
108
+ } else {
109
+ break;
110
+ }
111
+
112
+ var temp_data = {
113
+ user_name: tweet.user.name,
114
+ date: dating(tweet.created_at),
115
+ tweet: (tweet.retweeted) ? linking('RT @'+ tweet.user.screen_name +': '+ tweet.retweeted_status.text) : linking(tweet.text),
116
+ avatar: '<img src="'+ tweet.user.profile_image_url +'" />',
117
+ url: 'https://twitter.com/' + tweet.user.screen_name + '/status/' + tweet.id_str,
118
+ retweeted: tweet.retweeted,
119
+ screen_name: linking('@'+ tweet.user.screen_name)
120
+ };
121
+
122
+ that.find('ul').append('<li>' + templating(temp_data) + '</li>');
123
+ }
124
+
125
+ if (typeof callback === 'function') { callback(); }
126
+ });
127
+ });
128
+ };
129
+
130
+ })(jQuery);
@@ -0,0 +1,130 @@
1
+ (function($) {
2
+ "use strict";
3
+ $(document).ready(function() {
4
+
5
+
6
+ if ($(".vps-slider").length > 0) {
7
+ let $this = $(".vps-slider");
8
+
9
+ let sliderplans = [];
10
+
11
+ // name
12
+ sliderplans[0] = [products[0].name, products[1].name, products[2].name, products[3].name, products[4].name];
13
+
14
+ // price
15
+ sliderplans[1] = [products[0].price, products[1].price, products[2].price, products[3].price, products[4].price];
16
+
17
+ // desc
18
+ sliderplans[2] = [products[0].desc, products[1].desc, products[2].desc, products[3].desc, products[4].desc];
19
+
20
+ // cpu
21
+ sliderplans[3] = [products[0].cpu, products[1].cpu, products[2].cpu, products[3].cpu, products[4].cpu];
22
+
23
+ // brandwidth 1
24
+ sliderplans[4] = [products[0].brandwidth, products[1].brandwidth, products[2].brandwidth, products[3].brandwidth, products[4].brandwidth];
25
+
26
+ // brandwidth 2
27
+ sliderplans[5] = [products[0].brandwidth2, products[1].brandwidth2, products[2].brandwidth2, products[3].brandwidth2, products[4].brandwidth2];
28
+
29
+ // ram
30
+ sliderplans[6] = [products[0].ram, products[1].ram, products[2].ram, products[3].ram, products[4].ram];
31
+
32
+ // setup
33
+ sliderplans[7] = [products[0].setup, products[1].setup, products[2].setup, products[3].setup, products[4].setup];
34
+
35
+ // setup 2
36
+ sliderplans[8] = [products[0].setup2, products[1].setup2, products[2].setup2, products[3].setup2, products[4].setup2];
37
+
38
+ // diskspace
39
+ sliderplans[9] = [products[0].diskspace, products[1].diskspace, products[2].diskspace, products[3].diskspace, products[4].diskspace];
40
+
41
+ // ip one
42
+ sliderplans[10] = [products[0].ipOne, products[1].ipOne, products[2].ipOne, products[3].ipOne, products[4].ipOne];
43
+
44
+ // ip two
45
+ sliderplans[11] = [products[0].ipTwo, products[1].ipTwo, products[2].ipTwo, products[3].ipTwo, products[4].ipTwo];
46
+
47
+ let urilink = [products[0].urlLink, products[1].urlLink, products[2].urlLink, products[3].urlLink, products[4].urlLink];
48
+
49
+ let currentplan = 1;
50
+
51
+ $this.xsslide('single', sliderplans, currentplan, 'xs', 'horizontal');
52
+
53
+ $this.slider({
54
+ animate: true,
55
+ slide: function( event, ui ) {
56
+ // title
57
+ $('.slider-container .title').html(sliderplans[0][ui.value-1]);
58
+ // price
59
+ $('.slider-container .price').html(sliderplans[1][ui.value-1]);
60
+ // description
61
+ $('.slider-container .desc').html(sliderplans[2][ui.value-1]);
62
+ // cpu
63
+ $('.vps-pricing-list .cpu').html(sliderplans[3][ui.value-1]);
64
+ // brandwidth
65
+ $('.vps-pricing-list .brandwidth').html(sliderplans[4][ui.value-1]);
66
+ // brandwidth2
67
+ $('.vps-pricing-list .brandwidth2').html(sliderplans[5][ui.value-1]);
68
+ // ram
69
+ $('.vps-pricing-list .ram').html(sliderplans[6][ui.value-1]);
70
+ // setup 1
71
+ $('.vps-pricing-list .setup').html(sliderplans[7][ui.value-1]);
72
+ // setup 2
73
+ $('.vps-pricing-list .setup2').html(sliderplans[8][ui.value-1]);
74
+ // diskspace
75
+ $('.vps-pricing-list .diskspace').html(sliderplans[9][ui.value-1]);
76
+ // ip one
77
+ $('.vps-pricing-list .ip_one').html(sliderplans[10][ui.value-1]);
78
+ // ip two
79
+ $('.vps-pricing-list .ip_two').html(sliderplans[11][ui.value-1]);
80
+ // buttons
81
+ $('.slider-btns').attr('href', urilink[ui.value-1]);
82
+ // console.log($('.slider-btns').attr())
83
+ },
84
+ change: function( event, ui ) {
85
+ // title
86
+ $('.slider-container .title').html(sliderplans[0][ui.value-1]);
87
+ // price
88
+ $('.slider-container .price').html(sliderplans[1][ui.value-1]);
89
+ // description
90
+ $('.slider-container .desc').html(sliderplans[2][ui.value-1]);
91
+ // cpu
92
+ $('.vps-pricing-list .cpu').html(sliderplans[3][ui.value-1]);
93
+ // brandwidth
94
+ $('.vps-pricing-list .brandwidth').html(sliderplans[4][ui.value-1]);
95
+ // brandwidth2
96
+ $('.vps-pricing-list .brandwidth2').html(sliderplans[5][ui.value-1]);
97
+ // ram
98
+ $('.vps-pricing-list .ram').html(sliderplans[6][ui.value-1]);
99
+ // setup 1
100
+ $('.vps-pricing-list .setup').html(sliderplans[7][ui.value-1]);
101
+ // setup 2
102
+ $('.vps-pricing-list .setup2').html(sliderplans[8][ui.value-1]);
103
+ // diskspace
104
+ $('.vps-pricing-list .diskspace').html(sliderplans[9][ui.value-1]);
105
+ // ip one
106
+ $('.vps-pricing-list .ip_one').html(sliderplans[10][ui.value-1]);
107
+ // ip two
108
+ $('.vps-pricing-list .ip_two').html(sliderplans[11][ui.value-1]);
109
+ // buttons
110
+ $('.slider-btns').attr('href', urilink[ui.value-1]);
111
+ // console.log($('.slider-btns').attr())
112
+ }
113
+ });
114
+ }
115
+
116
+ $('.slider-tigger').click(function() {
117
+ var value= parseInt(this.id.slice(5)) + 1;
118
+ $('.vps-slider').slider('value', value);
119
+ if (!$(this).hasClass('current')) {
120
+ $(this).addClass('current');
121
+ $(this).nextAll().removeClass('current');
122
+ $(this).prevAll().removeClass('current');
123
+ } else {
124
+ $(this).removeClass('current');
125
+ }
126
+ });
127
+
128
+ }); // end ready function
129
+
130
+ })(jQuery);
@@ -0,0 +1,85 @@
1
+ let products = [
2
+
3
+ {
4
+ name : 'Basic Pack',
5
+ price : '$5.99',
6
+ desc : 'It is a paradisematic country, in which roasted parts of sentences fly into your mouth. Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name',
7
+ cpu : '1 Core',
8
+ brandwidth: '100 GB',
9
+ brandwidth2: '.5 TB',
10
+ ram: '1 GB' ,
11
+ setup: 'Paid',
12
+ setup2: 'Free',
13
+ diskspace: '100 GB',
14
+ ipOne: 'Up to 1',
15
+ ipTwo: 'Up to 0',
16
+ urlLink: 'http://whmcs.finesttheme.com/cart.php?a=add&pid=3'
17
+ },
18
+
19
+ {
20
+ name : 'Starter Pack',
21
+ price : '$10.99',
22
+ desc : ' Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name. It is a paradisematic country, in which roasted parts of sentences fly into your mouth.',
23
+ cpu : '2 Core',
24
+ brandwidth: '500 GB',
25
+ brandwidth2: '1 TB',
26
+ ram: '2 GB' ,
27
+ setup: 'Free',
28
+ setup2: 'Paid',
29
+ diskspace: '200 GB',
30
+ ipOne: 'Up to 3',
31
+ ipTwo: 'Up to 2',
32
+ urlLink: 'http://whmcs.finesttheme.com/cart.php?a=add&pid=6'
33
+ },
34
+
35
+ {
36
+ name : 'Enterprise Pack',
37
+ price : '$15.99',
38
+ desc : 'It is a paradisematic country, in which roasted parts of sentences fly into your mouth. Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name',
39
+ cpu : '3 Core',
40
+ brandwidth: '1000 GB',
41
+ brandwidth2: '5 TB',
42
+ ram: '5 GB' ,
43
+ setup: 'Paid',
44
+ setup2: 'Free',
45
+ diskspace: '300 GB',
46
+ ipOne: 'Up to 4',
47
+ ipTwo: 'Up to 6',
48
+ urlLink: 'http://whmcs.finesttheme.com/cart.php?a=add&pid=5'
49
+ },
50
+
51
+ {
52
+ name : 'Business Pack',
53
+ price : '$18.99',
54
+ desc : 'Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name. It is a paradisematic country, in which roasted parts of sentences fly into your mouth.',
55
+ cpu : '5 Core',
56
+ brandwidth: '2000 GB',
57
+ brandwidth2: '50 TB',
58
+ ram: '16 GB' ,
59
+ setup: 'Free',
60
+ setup2: 'Paid',
61
+ diskspace: '400 GB',
62
+ ipOne: 'Up to 8',
63
+ ipTwo: 'Up to 10',
64
+ urlLink: 'http://whmcs.finesttheme.com/cart.php?a=add&pid=10'
65
+ },
66
+
67
+ {
68
+ name : 'Pro Pack',
69
+ price : '$20.99',
70
+ desc : 'It is a paradisematic country, in which roasted parts of sentences fly into your mouth. Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name',
71
+ cpu : '8 Core',
72
+ brandwidth: 'Unlimited',
73
+ brandwidth2: '500 TB',
74
+ ram: '32 GB' ,
75
+ setup: 'Paid',
76
+ setup2: 'Free',
77
+ diskspace: '500 GB',
78
+ ipOne: 'Up to 9',
79
+ ipTwo: 'Up to 6',
80
+ urlLink: 'http://whmcs.finesttheme.com/cart.php?a=add&pid=11'
81
+ },
82
+ ];
83
+
84
+ // let url = 'https://www.domainname.com/?cmd=cart&id=';
85
+ // $('.slider-btns').attr('href', url + sliderplans[1][ui.value-1]);