From dba3ffd8f55261b2a35292a8d515d313358c33a7 Mon Sep 17 00:00:00 2001 From: Blake Wilson Date: Thu, 26 May 2016 19:02:10 -0700 Subject: [PATCH 1/5] Fixed issue with overlay sometimes being used on multiple instances and max-width is now set to none --- src/vidbg.js | 14 +++++++++++++- vidbg.min.js | 6 ++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 vidbg.min.js diff --git a/src/vidbg.js b/src/vidbg.js index 3756859..7dc39d4 100644 --- a/src/vidbg.js +++ b/src/vidbg.js @@ -224,6 +224,7 @@ var position = parsePosition(settings.position); var $video; var $wrapper; + var $overlay; // Set styles of a video wrapper $wrapper = vidbg.$wrapper = $('
').css({ @@ -318,6 +319,7 @@ '-ms-transform': 'translate(-' + position.x + ', -' + position.y + ')', '-moz-transform': 'translate(-' + position.x + ', -' + position.y + ')', transform: 'translate(-' + position.x + ', -' + position.y + ')', + 'max-width' : 'none', // Disable visibility, while loading visibility: 'hidden', @@ -349,9 +351,19 @@ // Append a video $wrapper.append($video); + + $overlay = vidbg.$overlay = $('
').css({ + position: 'absolute', + top: 0, + left: 0, + right: 0, + bottom: 0, + background: 'rgba(' + hexToRgb(settings.overlayColor).r + ', ' + hexToRgb(settings.overlayColor).g + ', ' + hexToRgb(settings.overlayColor).b + ', ' + settings.overlayAlpha + ')', + }); + // Set an overlay if settings is true if (settings.overlay) { - $( "
" ).insertAfter( $( ".vidbg-container > video" ) ); + $wrapper.append($overlay); } }; diff --git a/vidbg.min.js b/vidbg.min.js new file mode 100644 index 0000000..ae54d10 --- /dev/null +++ b/vidbg.min.js @@ -0,0 +1,6 @@ +/*! + * Vidbg v1.1 (https://github.com/blakewilson/vidbg) + * Vidbg By Blake Wilson + * @license Licensed Under MIT (https://github.com/blakewilson/vidbg/blob/master/LICENSE) + */ +!function(e,t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):e.jQuery)}(this,function($){"use strict";function e(e){var t={},o,i,r,n,s,a,p;for(s=e.replace(/\s*:\s*/g,":").replace(/\s*,\s*/g,",").split(","),p=0,a=s.length;a>p&&(i=s[p],-1===i.search(/^(http|https|ftp):\/\//)&&-1!==i.search(":"));p++)o=i.indexOf(":"),r=i.substring(0,o),n=i.substring(o+1),n||(n=void 0),"string"==typeof n&&(n="true"===n||("false"===n?!1:n)),"string"==typeof n&&(n=isNaN(n)?n:+n),t[r]=n;return null==r&&null==n?e:t}function t(e){e=""+e;var t=e.split(/\s+/),o="50%",i="50%",r,n,s;for(s=0,r=t.length;r>s;s++)n=t[s],"left"===n?o="0%":"right"===n?o="100%":"top"===n?i="0%":"bottom"===n?i="100%":"center"===n?0===s?o="50%":i="50%":0===s?o=n:i=n;return{x:o,y:i}}function o(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(e,t,o,i){return t+t+o+o+i+i});var o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return o?{r:parseInt(o[1],16),g:parseInt(o[2],16),b:parseInt(o[3],16)}:null}function i(t,o,i){this.$element=$(t),"string"==typeof o&&(o=e(o)),i?"string"==typeof i&&(i=e(i)):i={},this.settings=$.extend({},n,i),this.path=o;try{this.init()}catch(r){if(r.message!==s)throw r}}var r="vidbg",n={volume:1,playbackRate:1,muted:!0,loop:!0,autoplay:!0,position:"50% 50%",overlay:!1,overlayColor:"#000",overlayAlpha:.3,resizing:!0},s="Not implemented";i.prototype.init=function(){var e=this,i=e.path,r=i,n="",a=e.$element,p=e.settings,d=t(p.position),c,u,l;u=e.$wrapper=$('
').css({position:"absolute","z-index":-1,top:0,left:0,bottom:0,right:0,overflow:"hidden","-webkit-background-size":"cover","-moz-background-size":"cover","-o-background-size":"cover","background-size":"cover","background-repeat":"no-repeat","background-position":d.x+" "+d.y}),"object"==typeof i&&(i.poster?r=i.poster:i.mp4?r=i.mp4:i.webm&&(r=i.webm)),u.css("background-image","url("+r+")"),"static"===a.css("position")&&a.css("position","relative"),a.css("z-index","1"),a.is("body")&&u.css({position:"fixed"}),a.prepend(u),"object"==typeof i?(i.mp4&&(n+=''),i.webm&&(n+=''),c=e.$video=$("")):c=e.$video=$('');try{c.prop({autoplay:p.autoplay,loop:p.loop,volume:p.volume,muted:p.muted,defaultMuted:p.muted,playbackRate:p.playbackRate,defaultPlaybackRate:p.playbackRate})}catch(v){throw new Error(s)}c.css({margin:"auto",position:"absolute","z-index":-1,top:d.y,left:d.x,"-webkit-transform":"translate(-"+d.x+", -"+d.y+")","-ms-transform":"translate(-"+d.x+", -"+d.y+")","-moz-transform":"translate(-"+d.x+", -"+d.y+")",transform:"translate(-"+d.x+", -"+d.y+")","max-width":"none",visibility:"hidden",opacity:0}).one("canplaythrough.vidbg",function(){e.resize()}).one("playing.vidbg",function(){c.css({visibility:"visible",opacity:1}),u.css("background-image","none")}),a.on("resize.vidbg",function(){p.resizing&&e.resize()}),u.append(c),l=e.$overlay=$('
').css({position:"absolute",top:0,left:0,right:0,bottom:0,background:"rgba("+o(p.overlayColor).r+", "+o(p.overlayColor).g+", "+o(p.overlayColor).b+", "+p.overlayAlpha+")"}),p.overlay&&u.append(l)},i.prototype.getVideoObject=function(){return this.$video[0]},i.prototype.resize=function(){if(this.$video){var e=this.$wrapper,t=this.$video,o=t[0],i=o.videoHeight,r=o.videoWidth,n=e.height(),s=e.width();s/r>n/i?t.css({width:s+2,height:"auto"}):t.css({width:"auto",height:n+2})}},i.prototype.destroy=function(){delete $[r].lookup[this.index],this.$video&&this.$video.off(r),this.$element.off(r).removeData(r),this.$wrapper.remove()},$[r]={lookup:[]},$.fn[r]=function(e,t){var o;return this.each(function(){o=$.data(this,r),o&&o.destroy(),o=new i(this,e,t),o.index=$[r].lookup.push(o)-1,$.data(this,r,o)}),this},$(document).ready(function(){var e=$(window);e.on("resize.vidbg",function(){for(var e=$[r].lookup.length,t=0,o;e>t;t++)o=$[r].lookup[t],o&&o.settings.resizing&&o.resize()}),e.on("unload.vidbg",function(){return!1}),$(document).find("[data-vidbg-bg]").each(function(e,t){var o=$(t),i=o.data("vidbg-options"),n=o.data("vidbg-bg");o[r](n,i)})})}); \ No newline at end of file From bb177bbcf543149d3320dbaba834387a248c1cf4 Mon Sep 17 00:00:00 2001 From: Blake Wilson Date: Thu, 26 May 2016 19:03:03 -0700 Subject: [PATCH 2/5] Updated version --- src/vidbg.js | 2 +- vidbg.min.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vidbg.js b/src/vidbg.js index 7dc39d4..bfae230 100644 --- a/src/vidbg.js +++ b/src/vidbg.js @@ -1,5 +1,5 @@ /*! - * Vidbg v1.1 (https://github.com/blakewilson/vidbg) + * Vidbg v1.1.1 (https://github.com/blakewilson/vidbg) * Vidbg By Blake Wilson * @license Licensed Under MIT (https://github.com/blakewilson/vidbg/blob/master/LICENSE) */ diff --git a/vidbg.min.js b/vidbg.min.js index ae54d10..e61bcd7 100644 --- a/vidbg.min.js +++ b/vidbg.min.js @@ -1,5 +1,5 @@ /*! - * Vidbg v1.1 (https://github.com/blakewilson/vidbg) + * Vidbg v1.1.1 (https://github.com/blakewilson/vidbg) * Vidbg By Blake Wilson * @license Licensed Under MIT (https://github.com/blakewilson/vidbg/blob/master/LICENSE) */ From abf78f2489430ac7ae697c12b2a4d658b017a0e6 Mon Sep 17 00:00:00 2001 From: Blake Wilson Date: Thu, 26 May 2016 19:03:47 -0700 Subject: [PATCH 3/5] Updated dist non-minified release --- dist/vidbg.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/dist/vidbg.js b/dist/vidbg.js index 3756859..bfae230 100644 --- a/dist/vidbg.js +++ b/dist/vidbg.js @@ -1,5 +1,5 @@ /*! - * Vidbg v1.1 (https://github.com/blakewilson/vidbg) + * Vidbg v1.1.1 (https://github.com/blakewilson/vidbg) * Vidbg By Blake Wilson * @license Licensed Under MIT (https://github.com/blakewilson/vidbg/blob/master/LICENSE) */ @@ -224,6 +224,7 @@ var position = parsePosition(settings.position); var $video; var $wrapper; + var $overlay; // Set styles of a video wrapper $wrapper = vidbg.$wrapper = $('
').css({ @@ -318,6 +319,7 @@ '-ms-transform': 'translate(-' + position.x + ', -' + position.y + ')', '-moz-transform': 'translate(-' + position.x + ', -' + position.y + ')', transform: 'translate(-' + position.x + ', -' + position.y + ')', + 'max-width' : 'none', // Disable visibility, while loading visibility: 'hidden', @@ -349,9 +351,19 @@ // Append a video $wrapper.append($video); + + $overlay = vidbg.$overlay = $('
').css({ + position: 'absolute', + top: 0, + left: 0, + right: 0, + bottom: 0, + background: 'rgba(' + hexToRgb(settings.overlayColor).r + ', ' + hexToRgb(settings.overlayColor).g + ', ' + hexToRgb(settings.overlayColor).b + ', ' + settings.overlayAlpha + ')', + }); + // Set an overlay if settings is true if (settings.overlay) { - $( "
" ).insertAfter( $( ".vidbg-container > video" ) ); + $wrapper.append($overlay); } }; From 8878b0e66c7a7cb87306989d8f54c710e87ecd86 Mon Sep 17 00:00:00 2001 From: Blake Wilson Date: Thu, 26 May 2016 19:04:55 -0700 Subject: [PATCH 4/5] Updated dist mini version --- dist/vidbg.min.js | 4 ++-- vidbg.min.js | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) delete mode 100644 vidbg.min.js diff --git a/dist/vidbg.min.js b/dist/vidbg.min.js index 0913b76..e61bcd7 100644 --- a/dist/vidbg.min.js +++ b/dist/vidbg.min.js @@ -1,6 +1,6 @@ /*! - * Vidbg v1.1 (https://github.com/blakewilson/vidbg) + * Vidbg v1.1.1 (https://github.com/blakewilson/vidbg) * Vidbg By Blake Wilson * @license Licensed Under MIT (https://github.com/blakewilson/vidbg/blob/master/LICENSE) */ -!function(e,t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):e.jQuery)}(this,function($){"use strict";function e(e){var t={},o,i,r,n,s,a,p;for(s=e.replace(/\s*:\s*/g,":").replace(/\s*,\s*/g,",").split(","),p=0,a=s.length;a>p&&(i=s[p],-1===i.search(/^(http|https|ftp):\/\//)&&-1!==i.search(":"));p++)o=i.indexOf(":"),r=i.substring(0,o),n=i.substring(o+1),n||(n=void 0),"string"==typeof n&&(n="true"===n||("false"===n?!1:n)),"string"==typeof n&&(n=isNaN(n)?n:+n),t[r]=n;return null==r&&null==n?e:t}function t(e){e=""+e;var t=e.split(/\s+/),o="50%",i="50%",r,n,s;for(s=0,r=t.length;r>s;s++)n=t[s],"left"===n?o="0%":"right"===n?o="100%":"top"===n?i="0%":"bottom"===n?i="100%":"center"===n?0===s?o="50%":i="50%":0===s?o=n:i=n;return{x:o,y:i}}function o(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(e,t,o,i){return t+t+o+o+i+i});var o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return o?{r:parseInt(o[1],16),g:parseInt(o[2],16),b:parseInt(o[3],16)}:null}function i(t,o,i){this.$element=$(t),"string"==typeof o&&(o=e(o)),i?"string"==typeof i&&(i=e(i)):i={},this.settings=$.extend({},n,i),this.path=o;try{this.init()}catch(r){if(r.message!==s)throw r}}var r="vidbg",n={volume:1,playbackRate:1,muted:!0,loop:!0,autoplay:!0,position:"50% 50%",overlay:!1,overlayColor:"#000",overlayAlpha:.3,resizing:!0},s="Not implemented";i.prototype.init=function(){var e=this,i=e.path,n=i,a="",p=e.$element,d=e.settings,c=t(d.position),u,l;l=e.$wrapper=$('
').css({position:"absolute","z-index":-1,top:0,left:0,bottom:0,right:0,overflow:"hidden","-webkit-background-size":"cover","-moz-background-size":"cover","-o-background-size":"cover","background-size":"cover","background-repeat":"no-repeat","background-position":c.x+" "+c.y}),"object"==typeof i&&(i.poster?n=i.poster:i.mp4?n=i.mp4:i.webm&&(n=i.webm)),l.css("background-image","url("+n+")"),"static"===p.css("position")&&p.css("position","relative"),p.css("z-index","1"),p.is("body")&&l.css({position:"fixed"}),p.prepend(l),"object"==typeof i?(i.mp4&&(a+=''),i.webm&&(a+=''),u=e.$video=$("")):u=e.$video=$('');try{u.prop({autoplay:d.autoplay,loop:d.loop,volume:d.volume,muted:d.muted,defaultMuted:d.muted,playbackRate:d.playbackRate,defaultPlaybackRate:d.playbackRate})}catch(f){throw new Error(s)}u.css({margin:"auto",position:"absolute","z-index":-1,top:c.y,left:c.x,"-webkit-transform":"translate(-"+c.x+", -"+c.y+")","-ms-transform":"translate(-"+c.x+", -"+c.y+")","-moz-transform":"translate(-"+c.x+", -"+c.y+")",transform:"translate(-"+c.x+", -"+c.y+")",visibility:"hidden",opacity:0}).one("canplaythrough."+r,function(){e.resize()}).one("playing."+r,function(){u.css({visibility:"visible",opacity:1}),l.css("background-image","none")}),p.on("resize."+r,function(){d.resizing&&e.resize()}),l.append(u),d.overlay&&$("
").insertAfter($(".vidbg-container > video"))},i.prototype.getVideoObject=function(){return this.$video[0]},i.prototype.resize=function(){if(this.$video){var e=this.$wrapper,t=this.$video,o=t[0],i=o.videoHeight,r=o.videoWidth,n=e.height(),s=e.width();s/r>n/i?t.css({width:s+2,height:"auto"}):t.css({width:"auto",height:n+2})}},i.prototype.destroy=function(){delete $[r].lookup[this.index],this.$video&&this.$video.off(r),this.$element.off(r).removeData(r),this.$wrapper.remove()},$[r]={lookup:[]},$.fn[r]=function(e,t){var o;return this.each(function(){o=$.data(this,r),o&&o.destroy(),o=new i(this,e,t),o.index=$[r].lookup.push(o)-1,$.data(this,r,o)}),this},$(document).ready(function(){var e=$(window);e.on("resize."+r,function(){for(var e=$[r].lookup.length,t=0,o;e>t;t++)o=$[r].lookup[t],o&&o.settings.resizing&&o.resize()}),e.on("unload."+r,function(){return!1}),$(document).find("[data-"+r+"-bg]").each(function(e,t){var o=$(t),i=o.data(r+"-options"),n=o.data(r+"-bg");o[r](n,i)})})}); \ No newline at end of file +!function(e,t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):e.jQuery)}(this,function($){"use strict";function e(e){var t={},o,i,r,n,s,a,p;for(s=e.replace(/\s*:\s*/g,":").replace(/\s*,\s*/g,",").split(","),p=0,a=s.length;a>p&&(i=s[p],-1===i.search(/^(http|https|ftp):\/\//)&&-1!==i.search(":"));p++)o=i.indexOf(":"),r=i.substring(0,o),n=i.substring(o+1),n||(n=void 0),"string"==typeof n&&(n="true"===n||("false"===n?!1:n)),"string"==typeof n&&(n=isNaN(n)?n:+n),t[r]=n;return null==r&&null==n?e:t}function t(e){e=""+e;var t=e.split(/\s+/),o="50%",i="50%",r,n,s;for(s=0,r=t.length;r>s;s++)n=t[s],"left"===n?o="0%":"right"===n?o="100%":"top"===n?i="0%":"bottom"===n?i="100%":"center"===n?0===s?o="50%":i="50%":0===s?o=n:i=n;return{x:o,y:i}}function o(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(e,t,o,i){return t+t+o+o+i+i});var o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return o?{r:parseInt(o[1],16),g:parseInt(o[2],16),b:parseInt(o[3],16)}:null}function i(t,o,i){this.$element=$(t),"string"==typeof o&&(o=e(o)),i?"string"==typeof i&&(i=e(i)):i={},this.settings=$.extend({},n,i),this.path=o;try{this.init()}catch(r){if(r.message!==s)throw r}}var r="vidbg",n={volume:1,playbackRate:1,muted:!0,loop:!0,autoplay:!0,position:"50% 50%",overlay:!1,overlayColor:"#000",overlayAlpha:.3,resizing:!0},s="Not implemented";i.prototype.init=function(){var e=this,i=e.path,r=i,n="",a=e.$element,p=e.settings,d=t(p.position),c,u,l;u=e.$wrapper=$('
').css({position:"absolute","z-index":-1,top:0,left:0,bottom:0,right:0,overflow:"hidden","-webkit-background-size":"cover","-moz-background-size":"cover","-o-background-size":"cover","background-size":"cover","background-repeat":"no-repeat","background-position":d.x+" "+d.y}),"object"==typeof i&&(i.poster?r=i.poster:i.mp4?r=i.mp4:i.webm&&(r=i.webm)),u.css("background-image","url("+r+")"),"static"===a.css("position")&&a.css("position","relative"),a.css("z-index","1"),a.is("body")&&u.css({position:"fixed"}),a.prepend(u),"object"==typeof i?(i.mp4&&(n+=''),i.webm&&(n+=''),c=e.$video=$("")):c=e.$video=$('');try{c.prop({autoplay:p.autoplay,loop:p.loop,volume:p.volume,muted:p.muted,defaultMuted:p.muted,playbackRate:p.playbackRate,defaultPlaybackRate:p.playbackRate})}catch(v){throw new Error(s)}c.css({margin:"auto",position:"absolute","z-index":-1,top:d.y,left:d.x,"-webkit-transform":"translate(-"+d.x+", -"+d.y+")","-ms-transform":"translate(-"+d.x+", -"+d.y+")","-moz-transform":"translate(-"+d.x+", -"+d.y+")",transform:"translate(-"+d.x+", -"+d.y+")","max-width":"none",visibility:"hidden",opacity:0}).one("canplaythrough.vidbg",function(){e.resize()}).one("playing.vidbg",function(){c.css({visibility:"visible",opacity:1}),u.css("background-image","none")}),a.on("resize.vidbg",function(){p.resizing&&e.resize()}),u.append(c),l=e.$overlay=$('
').css({position:"absolute",top:0,left:0,right:0,bottom:0,background:"rgba("+o(p.overlayColor).r+", "+o(p.overlayColor).g+", "+o(p.overlayColor).b+", "+p.overlayAlpha+")"}),p.overlay&&u.append(l)},i.prototype.getVideoObject=function(){return this.$video[0]},i.prototype.resize=function(){if(this.$video){var e=this.$wrapper,t=this.$video,o=t[0],i=o.videoHeight,r=o.videoWidth,n=e.height(),s=e.width();s/r>n/i?t.css({width:s+2,height:"auto"}):t.css({width:"auto",height:n+2})}},i.prototype.destroy=function(){delete $[r].lookup[this.index],this.$video&&this.$video.off(r),this.$element.off(r).removeData(r),this.$wrapper.remove()},$[r]={lookup:[]},$.fn[r]=function(e,t){var o;return this.each(function(){o=$.data(this,r),o&&o.destroy(),o=new i(this,e,t),o.index=$[r].lookup.push(o)-1,$.data(this,r,o)}),this},$(document).ready(function(){var e=$(window);e.on("resize.vidbg",function(){for(var e=$[r].lookup.length,t=0,o;e>t;t++)o=$[r].lookup[t],o&&o.settings.resizing&&o.resize()}),e.on("unload.vidbg",function(){return!1}),$(document).find("[data-vidbg-bg]").each(function(e,t){var o=$(t),i=o.data("vidbg-options"),n=o.data("vidbg-bg");o[r](n,i)})})}); \ No newline at end of file diff --git a/vidbg.min.js b/vidbg.min.js deleted file mode 100644 index e61bcd7..0000000 --- a/vidbg.min.js +++ /dev/null @@ -1,6 +0,0 @@ -/*! - * Vidbg v1.1.1 (https://github.com/blakewilson/vidbg) - * Vidbg By Blake Wilson - * @license Licensed Under MIT (https://github.com/blakewilson/vidbg/blob/master/LICENSE) - */ -!function(e,t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):e.jQuery)}(this,function($){"use strict";function e(e){var t={},o,i,r,n,s,a,p;for(s=e.replace(/\s*:\s*/g,":").replace(/\s*,\s*/g,",").split(","),p=0,a=s.length;a>p&&(i=s[p],-1===i.search(/^(http|https|ftp):\/\//)&&-1!==i.search(":"));p++)o=i.indexOf(":"),r=i.substring(0,o),n=i.substring(o+1),n||(n=void 0),"string"==typeof n&&(n="true"===n||("false"===n?!1:n)),"string"==typeof n&&(n=isNaN(n)?n:+n),t[r]=n;return null==r&&null==n?e:t}function t(e){e=""+e;var t=e.split(/\s+/),o="50%",i="50%",r,n,s;for(s=0,r=t.length;r>s;s++)n=t[s],"left"===n?o="0%":"right"===n?o="100%":"top"===n?i="0%":"bottom"===n?i="100%":"center"===n?0===s?o="50%":i="50%":0===s?o=n:i=n;return{x:o,y:i}}function o(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(e,t,o,i){return t+t+o+o+i+i});var o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return o?{r:parseInt(o[1],16),g:parseInt(o[2],16),b:parseInt(o[3],16)}:null}function i(t,o,i){this.$element=$(t),"string"==typeof o&&(o=e(o)),i?"string"==typeof i&&(i=e(i)):i={},this.settings=$.extend({},n,i),this.path=o;try{this.init()}catch(r){if(r.message!==s)throw r}}var r="vidbg",n={volume:1,playbackRate:1,muted:!0,loop:!0,autoplay:!0,position:"50% 50%",overlay:!1,overlayColor:"#000",overlayAlpha:.3,resizing:!0},s="Not implemented";i.prototype.init=function(){var e=this,i=e.path,r=i,n="",a=e.$element,p=e.settings,d=t(p.position),c,u,l;u=e.$wrapper=$('
').css({position:"absolute","z-index":-1,top:0,left:0,bottom:0,right:0,overflow:"hidden","-webkit-background-size":"cover","-moz-background-size":"cover","-o-background-size":"cover","background-size":"cover","background-repeat":"no-repeat","background-position":d.x+" "+d.y}),"object"==typeof i&&(i.poster?r=i.poster:i.mp4?r=i.mp4:i.webm&&(r=i.webm)),u.css("background-image","url("+r+")"),"static"===a.css("position")&&a.css("position","relative"),a.css("z-index","1"),a.is("body")&&u.css({position:"fixed"}),a.prepend(u),"object"==typeof i?(i.mp4&&(n+=''),i.webm&&(n+=''),c=e.$video=$("")):c=e.$video=$('');try{c.prop({autoplay:p.autoplay,loop:p.loop,volume:p.volume,muted:p.muted,defaultMuted:p.muted,playbackRate:p.playbackRate,defaultPlaybackRate:p.playbackRate})}catch(v){throw new Error(s)}c.css({margin:"auto",position:"absolute","z-index":-1,top:d.y,left:d.x,"-webkit-transform":"translate(-"+d.x+", -"+d.y+")","-ms-transform":"translate(-"+d.x+", -"+d.y+")","-moz-transform":"translate(-"+d.x+", -"+d.y+")",transform:"translate(-"+d.x+", -"+d.y+")","max-width":"none",visibility:"hidden",opacity:0}).one("canplaythrough.vidbg",function(){e.resize()}).one("playing.vidbg",function(){c.css({visibility:"visible",opacity:1}),u.css("background-image","none")}),a.on("resize.vidbg",function(){p.resizing&&e.resize()}),u.append(c),l=e.$overlay=$('
').css({position:"absolute",top:0,left:0,right:0,bottom:0,background:"rgba("+o(p.overlayColor).r+", "+o(p.overlayColor).g+", "+o(p.overlayColor).b+", "+p.overlayAlpha+")"}),p.overlay&&u.append(l)},i.prototype.getVideoObject=function(){return this.$video[0]},i.prototype.resize=function(){if(this.$video){var e=this.$wrapper,t=this.$video,o=t[0],i=o.videoHeight,r=o.videoWidth,n=e.height(),s=e.width();s/r>n/i?t.css({width:s+2,height:"auto"}):t.css({width:"auto",height:n+2})}},i.prototype.destroy=function(){delete $[r].lookup[this.index],this.$video&&this.$video.off(r),this.$element.off(r).removeData(r),this.$wrapper.remove()},$[r]={lookup:[]},$.fn[r]=function(e,t){var o;return this.each(function(){o=$.data(this,r),o&&o.destroy(),o=new i(this,e,t),o.index=$[r].lookup.push(o)-1,$.data(this,r,o)}),this},$(document).ready(function(){var e=$(window);e.on("resize.vidbg",function(){for(var e=$[r].lookup.length,t=0,o;e>t;t++)o=$[r].lookup[t],o&&o.settings.resizing&&o.resize()}),e.on("unload.vidbg",function(){return!1}),$(document).find("[data-vidbg-bg]").each(function(e,t){var o=$(t),i=o.data("vidbg-options"),n=o.data("vidbg-bg");o[r](n,i)})})}); \ No newline at end of file From eb693be781ef89cba59428128b27ef7e6b718a8f Mon Sep 17 00:00:00 2001 From: Blake Wilson Date: Thu, 26 May 2016 19:05:51 -0700 Subject: [PATCH 5/5] Remove config.codekit from .gitignore --- .gitignore | 1 - config.codekit | 923 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 923 insertions(+), 1 deletion(-) create mode 100644 config.codekit diff --git a/.gitignore b/.gitignore index f38e72f..9b7c110 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ .DS_Store .codekit-cache -config.codekit diff --git a/config.codekit b/config.codekit new file mode 100644 index 0000000..fc2fe7d --- /dev/null +++ b/config.codekit @@ -0,0 +1,923 @@ +{ +"CodeKitInfo": "This is a CodeKit 2.x project configuration file. It is designed to sync project settings across multiple machines. MODIFYING THE CONTENTS OF THIS FILE IS A POOR LIFE DECISION. If you do so, you will likely cause CodeKit to crash. This file is not useful unless accompanied by the project that created it in CodeKit 2. This file is not backwards-compatible with CodeKit 1.x. For more information, see: http:\/\/incident57.com\/codekit", +"creatorBuild": "19127", +"files": { + "\/demo\/css\/fullscreenDemo.css": { + "fileType": 16, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/demo\/css\/fullscreenDemo.css", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/demo\/css\/insideElementDemo.css": { + "fileType": 16, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/demo\/css\/insideElementDemo.css", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/demo\/elementDemo.html": { + "fileType": 8192, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/demo\/elementDemo.html", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/demo\/fullscreenDemo.html": { + "fileType": 8192, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/demo\/fullscreenDemo.html", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/demo\/media\/fallback.jpg": { + "fileType": 16384, + "ignore": 0, + "ignoreWasSetByUser": 0, + "initialSize": 104029, + "inputAbbreviatedPath": "\/demo\/media\/fallback.jpg", + "outputAbbreviatedPath": "\/demo\/media\/fallback.jpg", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0, + "processed": 0 + }, + "\/dist\/vidbg.js": { + "fileType": 64, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/dist\/vidbg.js", + "outputAbbreviatedPath": "\/dist\/min\/vidbg-min.js", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0, + "outputStyle": 1, + "syntaxCheckerStyle": 1 + }, + "\/dist\/vidbg.min.js": { + "fileType": 64, + "ignore": 1, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/dist\/vidbg.min.js", + "outputAbbreviatedPath": "\/dist\/min\/vidbg.min-min.js", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0, + "outputStyle": 1, + "syntaxCheckerStyle": 1 + }, + "\/README.md": { + "criticStyle": 0, + "enableFootnotes": 1, + "enableLabels": 1, + "enableSmartQuotes": 1, + "escapeLineBreaks": 0, + "fileType": 4096, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/README.md", + "maskEmailAddresses": 1, + "outputAbbreviatedPath": "\/README.html", + "outputFormat": 0, + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0, + "outputStyle": 0, + "parseMetadata": 1, + "processHTML": 0, + "randomFootnoteNumbers": 0, + "useCompatibilityMode": 0 + }, + "\/src\/vidbg.js": { + "fileType": 64, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/src\/vidbg.js", + "outputAbbreviatedPath": "\/dist\/vidbg.min.js", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 1, + "outputStyle": 1, + "syntaxCheckerStyle": 1 + } + }, +"hooks": [ + ], +"lastSavedByUser": "Blake Wilson", +"manualImportLinks": { + }, +"projectAttributes": { + "bowerAbbreviatedPath": "", + "displayValue": "vidbg", + "displayValueWasSetByUser": 0, + "iconImageName": "globe_blue" + }, +"projectSettings": { + "alwaysUseExternalServer": 0, + "animateCSSInjections": 1, + "autoApplyPSLanguageSettingsStyle": 0, + "autoprefixerBrowserString": "> 1%, last 2 versions, Firefox ESR, Opera 12.1", + "autoSyncProjectSettingsFile": 1, + "browserRefreshDelay": 0, + "coffeeAutoOutputPathEnabled": 1, + "coffeeAutoOutputPathFilenamePattern": "*.js", + "coffeeAutoOutputPathRelativePath": "", + "coffeeAutoOutputPathReplace1": "", + "coffeeAutoOutputPathReplace2": "", + "coffeeAutoOutputPathStyle": 0, + "coffeeCreateSourceMap": 0, + "coffeeLintFlags2": { + "arrow_spacing": { + "active": 0, + "flagValue": -1 + }, + "camel_case_classes": { + "active": 1, + "flagValue": -1 + }, + "colon_assignment_spacing": { + "active": 0, + "flagValue": 1 + }, + "cyclomatic_complexity": { + "active": 0, + "flagValue": 10 + }, + "duplicate_key": { + "active": 1, + "flagValue": -1 + }, + "empty_constructor_needs_parens": { + "active": 0, + "flagValue": -1 + }, + "ensure_comprehensions": { + "active": 1, + "flagValue": -1 + }, + "indentation": { + "active": 1, + "flagValue": 2 + }, + "line_endings": { + "active": 0, + "flagValue": 0 + }, + "max_line_length": { + "active": 0, + "flagValue": 150 + }, + "missing_fat_arrows": { + "active": 0, + "flagValue": -1 + }, + "newlines_after_classes": { + "active": 0, + "flagValue": 3 + }, + "no_backticks": { + "active": 1, + "flagValue": -1 + }, + "no_debugger": { + "active": 1, + "flagValue": -1 + }, + "no_empty_functions": { + "active": 0, + "flagValue": -1 + }, + "no_empty_param_list": { + "active": 0, + "flagValue": -1 + }, + "no_implicit_braces": { + "active": 1, + "flagValue": -1 + }, + "no_implicit_parens": { + "active": 0, + "flagValue": -1 + }, + "no_interpolation_in_single_quotes": { + "active": 0, + "flagValue": -1 + }, + "no_nested_string_interpolation": { + "active": 1, + "flagValue": -1 + }, + "no_plusplus": { + "active": 0, + "flagValue": -1 + }, + "no_private_function_fat_arrows": { + "active": 1, + "flagValue": -1 + }, + "no_stand_alone_at": { + "active": 1, + "flagValue": -1 + }, + "no_tabs": { + "active": 1, + "flagValue": -1 + }, + "no_this": { + "active": 0, + "flagValue": -1 + }, + "no_throwing_strings": { + "active": 1, + "flagValue": -1 + }, + "no_trailing_semicolons": { + "active": 1, + "flagValue": -1 + }, + "no_trailing_whitespace": { + "active": 1, + "flagValue": -1 + }, + "no_unnecessary_double_quotes": { + "active": 0, + "flagValue": -1 + }, + "no_unnecessary_fat_arrows": { + "active": 1, + "flagValue": -1 + }, + "non_empty_constructor_needs_parens": { + "active": 0, + "flagValue": -1 + }, + "prefer_english_operator": { + "active": 0, + "flagValue": -1 + }, + "space_operators": { + "active": 0, + "flagValue": -1 + }, + "spacing_after_comma": { + "active": 1, + "flagValue": -1 + } + }, + "coffeeMinifyOutput": 1, + "coffeeOutputStyle": 0, + "coffeeSyntaxCheckerStyle": 1, + "externalServerAddress": "http:\/\/localhost:8888", + "externalServerPreviewPathAddition": "", + "genericWebpageFileExtensionsString": "html, htm, shtml, shtm, xhtml, php, jsp, asp, aspx, erb, ctp", + "hamlAutoOutputPathEnabled": 1, + "hamlAutoOutputPathFilenamePattern": "*.html", + "hamlAutoOutputPathRelativePath": "", + "hamlAutoOutputPathReplace1": "", + "hamlAutoOutputPathReplace2": "", + "hamlAutoOutputPathStyle": 0, + "hamlEscapeHTMLCharacters": 0, + "hamlNoEscapeInAttributes": 0, + "hamlOutputFormat": 2, + "hamlOutputStyle": 0, + "hamlUseCDATA": 0, + "hamlUseDoubleQuotes": 0, + "hamlUseUnixNewlines": 0, + "jadeAutoOutputPathEnabled": 1, + "jadeAutoOutputPathFilenamePattern": "*.html", + "jadeAutoOutputPathRelativePath": "", + "jadeAutoOutputPathReplace1": "", + "jadeAutoOutputPathReplace2": "", + "jadeAutoOutputPathStyle": 0, + "jadeCompileDebug": 1, + "jadeOutputStyle": 0, + "javascriptAutoOutputPathEnabled": 1, + "javascriptAutoOutputPathFilenamePattern": "*-min.js", + "javascriptAutoOutputPathRelativePath": "\/min", + "javascriptAutoOutputPathReplace1": "", + "javascriptAutoOutputPathReplace2": "", + "javascriptAutoOutputPathStyle": 2, + "javascriptCreateSourceMap": 1, + "javascriptOutputStyle": 1, + "javascriptSyntaxCheckerStyle": 1, + "jsCheckerReservedNamesString": "", + "jsHintFlags2": { + "asi": { + "active": 0, + "flagValue": -1 + }, + "bitwise": { + "active": 1, + "flagValue": -1 + }, + "boss": { + "active": 0, + "flagValue": -1 + }, + "browser": { + "active": 1, + "flagValue": -1 + }, + "browserify": { + "active": 0, + "flagValue": -1 + }, + "camelcase": { + "active": 0, + "flagValue": -1 + }, + "couch": { + "active": 0, + "flagValue": -1 + }, + "curly": { + "active": 1, + "flagValue": -1 + }, + "debug": { + "active": 0, + "flagValue": -1 + }, + "devel": { + "active": 0, + "flagValue": -1 + }, + "dojo": { + "active": 0, + "flagValue": -1 + }, + "elision": { + "active": 1, + "flagValue": -1 + }, + "eqeqeq": { + "active": 1, + "flagValue": -1 + }, + "eqnull": { + "active": 0, + "flagValue": -1 + }, + "es3": { + "active": 0, + "flagValue": -1 + }, + "esnext": { + "active": 0, + "flagValue": -1 + }, + "evil": { + "active": 0, + "flagValue": -1 + }, + "expr": { + "active": 0, + "flagValue": -1 + }, + "forin": { + "active": 0, + "flagValue": -1 + }, + "freeze": { + "active": 1, + "flagValue": -1 + }, + "funcscope": { + "active": 0, + "flagValue": -1 + }, + "futurehostile": { + "active": 0, + "flagValue": -1 + }, + "globalstrict": { + "active": 0, + "flagValue": -1 + }, + "immed": { + "active": 0, + "flagValue": -1 + }, + "indent": { + "active": 0, + "flagValue": 4 + }, + "iterator": { + "active": 0, + "flagValue": -1 + }, + "jasmine": { + "active": 0, + "flagValue": -1 + }, + "jquery": { + "active": 1, + "flagValue": -1 + }, + "lastsemic": { + "active": 0, + "flagValue": -1 + }, + "latedef": { + "active": 1, + "flagValue": -1 + }, + "laxbreak": { + "active": 0, + "flagValue": -1 + }, + "laxcomma": { + "active": 0, + "flagValue": -1 + }, + "loopfunc": { + "active": 0, + "flagValue": -1 + }, + "maxcomplexity": { + "active": 0, + "flagValue": 10 + }, + "maxdepth": { + "active": 0, + "flagValue": 3 + }, + "maxlen": { + "active": 0, + "flagValue": 150 + }, + "maxparams": { + "active": 0, + "flagValue": 3 + }, + "maxstatements": { + "active": 0, + "flagValue": 4 + }, + "mocha": { + "active": 0, + "flagValue": -1 + }, + "mootools": { + "active": 0, + "flagValue": -1 + }, + "moz": { + "active": 0, + "flagValue": -1 + }, + "multistr": { + "active": 0, + "flagValue": -1 + }, + "newcap": { + "active": 1, + "flagValue": -1 + }, + "noarg": { + "active": 1, + "flagValue": -1 + }, + "nocomma": { + "active": 0, + "flagValue": -1 + }, + "node": { + "active": 0, + "flagValue": -1 + }, + "noempty": { + "active": 0, + "flagValue": -1 + }, + "nonbsp": { + "active": 0, + "flagValue": -1 + }, + "nonew": { + "active": 1, + "flagValue": -1 + }, + "nonstandard": { + "active": 0, + "flagValue": -1 + }, + "notypeof": { + "active": 1, + "flagValue": -1 + }, + "noyield": { + "active": 0, + "flagValue": -1 + }, + "onecase": { + "active": 0, + "flagValue": -1 + }, + "phantom": { + "active": 0, + "flagValue": -1 + }, + "plusplus": { + "active": 0, + "flagValue": -1 + }, + "proto": { + "active": 0, + "flagValue": -1 + }, + "prototypejs": { + "active": 0, + "flagValue": -1 + }, + "qunit": { + "active": 0, + "flagValue": -1 + }, + "regexp": { + "active": 1, + "flagValue": -1 + }, + "rhino": { + "active": 0, + "flagValue": -1 + }, + "scripturl": { + "active": 0, + "flagValue": -1 + }, + "shadow": { + "active": 0, + "flagValue": -1 + }, + "shelljs": { + "active": 0, + "flagValue": -1 + }, + "singleGroups": { + "active": 0, + "flagValue": -1 + }, + "strict": { + "active": 0, + "flagValue": -1 + }, + "sub": { + "active": 0, + "flagValue": -1 + }, + "supernew": { + "active": 0, + "flagValue": -1 + }, + "typed": { + "active": 0, + "flagValue": -1 + }, + "undef": { + "active": 1, + "flagValue": -1 + }, + "unused": { + "active": 1, + "flagValue": -1 + }, + "varstmt": { + "active": 0, + "flagValue": -1 + }, + "withstmt": { + "active": 0, + "flagValue": -1 + }, + "worker": { + "active": 0, + "flagValue": -1 + }, + "wsh": { + "active": 0, + "flagValue": -1 + }, + "yui": { + "active": 0, + "flagValue": -1 + } + }, + "jsLintFlags2": { + "bitwise": { + "active": 0, + "flagValue": -1 + }, + "browser": { + "active": 1, + "flagValue": -1 + }, + "couch": { + "active": 0, + "flagValue": -1 + }, + "devel": { + "active": 0, + "flagValue": -1 + }, + "es6": { + "active": 0, + "flagValue": -1 + }, + "eval": { + "active": 0, + "flagValue": -1 + }, + "for": { + "active": 0, + "flagValue": -1 + }, + "maxlen": { + "active": 0, + "flagValue": 150 + }, + "node": { + "active": 0, + "flagValue": -1 + }, + "this": { + "active": 0, + "flagValue": -1 + }, + "white": { + "active": 0, + "flagValue": -1 + } + }, + "jsonAutoOutputPathEnabled": 0, + "jsonAutoOutputPathFilenamePattern": "*-min.json", + "jsonAutoOutputPathRelativePath": "", + "jsonAutoOutputPathReplace1": "", + "jsonAutoOutputPathReplace2": "", + "jsonAutoOutputPathStyle": 0, + "jsonOrderOutput": 0, + "jsonOutputStyle": 1, + "kitAutoOutputPathEnabled": 1, + "kitAutoOutputPathFilenamePattern": "*.html", + "kitAutoOutputPathRelativePath": "", + "kitAutoOutputPathReplace1": "", + "kitAutoOutputPathReplace2": "", + "kitAutoOutputPathStyle": 0, + "lessAllowInsecureImports": 0, + "lessAutoOutputPathEnabled": 1, + "lessAutoOutputPathFilenamePattern": "*.css", + "lessAutoOutputPathRelativePath": "..\/css", + "lessAutoOutputPathReplace1": "less", + "lessAutoOutputPathReplace2": "css", + "lessAutoOutputPathStyle": 2, + "lessCreateSourceMap": 0, + "lessDisableJavascript": 0, + "lessIeCompatibility": 1, + "lessOutputStyle": 0, + "lessRelativeURLS": 0, + "lessStrictImports": 0, + "lessStrictMath": 0, + "lessStrictUnits": 0, + "markdownAutoOutputPathEnabled": 1, + "markdownAutoOutputPathFilenamePattern": "*.html", + "markdownAutoOutputPathRelativePath": "", + "markdownAutoOutputPathReplace1": "", + "markdownAutoOutputPathReplace2": "", + "markdownAutoOutputPathStyle": 0, + "markdownCriticStyle": 0, + "markdownEnableFootnotes": 1, + "markdownEnableLabels": 1, + "markdownEnableSmartQuotes": 1, + "markdownEscapeLineBreaks": 0, + "markdownMaskEmailAddresses": 1, + "markdownOutputFormat": 0, + "markdownOutputStyle": 0, + "markdownParseMetadata": 1, + "markdownProcessHTML": 0, + "markdownRandomFootnoteNumbers": 0, + "markdownUseCompatibilityMode": 0, + "reloadFileURLs": 0, + "sassAutoOutputPathEnabled": 1, + "sassAutoOutputPathFilenamePattern": "*.css", + "sassAutoOutputPathRelativePath": "..\/css", + "sassAutoOutputPathReplace1": "sass", + "sassAutoOutputPathReplace2": "css", + "sassAutoOutputPathStyle": 2, + "sassCreateSourceMap": 0, + "sassDebugStyle": 0, + "sassDecimalPrecision": 10, + "sassOutputStyle": 0, + "sassUseLibsass": 0, + "shouldRunAutoprefixer": 0, + "shouldRunBless": 0, + "skippedItemsString": ".svn, .git, .hg, log, _logs, _cache, cache, logs, node_modules", + "slimAutoOutputPathEnabled": 1, + "slimAutoOutputPathFilenamePattern": "*.html", + "slimAutoOutputPathRelativePath": "", + "slimAutoOutputPathReplace1": "", + "slimAutoOutputPathReplace2": "", + "slimAutoOutputPathStyle": 0, + "slimCompileOnly": 0, + "slimLogicless": 0, + "slimOutputFormat": 0, + "slimOutputStyle": 1, + "slimRailsCompatible": 0, + "stylusAutoOutputPathEnabled": 1, + "stylusAutoOutputPathFilenamePattern": "*.css", + "stylusAutoOutputPathRelativePath": "..\/css", + "stylusAutoOutputPathReplace1": "stylus", + "stylusAutoOutputPathReplace2": "css", + "stylusAutoOutputPathStyle": 2, + "stylusCreateSourceMap": 0, + "stylusDebugStyle": 0, + "stylusImportCSS": 0, + "stylusOutputStyle": 0, + "stylusResolveRelativeURLS": 0, + "typescriptAutoOutputPathEnabled": 1, + "typescriptAutoOutputPathFilenamePattern": "*.js", + "typescriptAutoOutputPathRelativePath": "\/js", + "typescriptAutoOutputPathReplace1": "", + "typescriptAutoOutputPathReplace2": "", + "typescriptAutoOutputPathStyle": 2, + "typescriptCreateDeclarationFile": 0, + "typescriptCreateSourceMap": 0, + "typescriptJSXMode": 0, + "typescriptMinifyOutput": 0, + "typescriptModuleResolutionType": 0, + "typescriptModuleType": 2, + "typescriptNoImplicitAny": 0, + "typescriptPreserveConstEnums": 0, + "typescriptRemoveComments": 0, + "typescriptSuppressImplicitAnyIndexErrors": 0, + "typescriptTargetECMAVersion": 0, + "uglifyDefinesString": "", + "uglifyFlags2": { + "ascii-only": { + "active": 0, + "flagValue": -1 + }, + "bare-returns": { + "active": 0, + "flagValue": -1 + }, + "booleans": { + "active": 1, + "flagValue": -1 + }, + "bracketize": { + "active": 0, + "flagValue": -1 + }, + "cascade": { + "active": 1, + "flagValue": -1 + }, + "comments": { + "active": 1, + "flagValue": -1 + }, + "comparisons": { + "active": 1, + "flagValue": -1 + }, + "compress": { + "active": 1, + "flagValue": -1 + }, + "conditionals": { + "active": 1, + "flagValue": -1 + }, + "dead_code": { + "active": 0, + "flagValue": -1 + }, + "drop_console": { + "active": 0, + "flagValue": -1 + }, + "drop_debugger": { + "active": 1, + "flagValue": -1 + }, + "eval": { + "active": 0, + "flagValue": -1 + }, + "evaluate": { + "active": 1, + "flagValue": -1 + }, + "hoist_funs": { + "active": 1, + "flagValue": -1 + }, + "hoist_vars": { + "active": 0, + "flagValue": -1 + }, + "if_return": { + "active": 1, + "flagValue": -1 + }, + "indent-level": { + "active": 0, + "flagValue": 4 + }, + "indent-start": { + "active": 0, + "flagValue": 0 + }, + "inline-script": { + "active": 0, + "flagValue": -1 + }, + "join_vars": { + "active": 1, + "flagValue": -1 + }, + "keep_fargs": { + "active": 0, + "flagValue": -1 + }, + "keep_fnames": { + "active": 0, + "flagValue": -1 + }, + "loops": { + "active": 1, + "flagValue": -1 + }, + "mangle": { + "active": 1, + "flagValue": -1 + }, + "max-line-len": { + "active": 1, + "flagValue": 32000 + }, + "negate_iife": { + "active": 1, + "flagValue": -1 + }, + "properties": { + "active": 1, + "flagValue": -1 + }, + "pure_getters": { + "active": 0, + "flagValue": -1 + }, + "quote-keys": { + "active": 0, + "flagValue": -1 + }, + "screw-ie8": { + "active": 0, + "flagValue": -1 + }, + "semicolons": { + "active": 1, + "flagValue": -1 + }, + "sequences": { + "active": 1, + "flagValue": -1 + }, + "sort": { + "active": 0, + "flagValue": -1 + }, + "space-colon": { + "active": 1, + "flagValue": -1 + }, + "toplevel": { + "active": 0, + "flagValue": -1 + }, + "unsafe": { + "active": 0, + "flagValue": -1 + }, + "unused": { + "active": 0, + "flagValue": -1 + }, + "warnings": { + "active": 0, + "flagValue": -1 + }, + "width": { + "active": 1, + "flagValue": 80 + } + }, + "uglifyReservedNamesString": "$", + "websiteRelativeRoot": "" + }, +"settingsFileVersion": "2" +} \ No newline at end of file