").attr("id",b).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(b){a.isArray(b)&&(b.length?b.length===this.anchors.length&&(b=!0):b=!1);for(var c,d=0;c=this.tabs[d];d++)b===!0||-1!==a.inArray(d,b)?a(c).addClass("ui-state-disabled").attr("aria-disabled","true"):a(c).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=b},_setupEvents:function(b){var c={click:function(a){a.preventDefault()}};b&&a.each(b.split(" "),function(a,b){c[b]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,c),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(b){var c,d=this.element.parent();"fill"===b?(c=d.height(),c-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var b=a(this),d=b.css("position");"absolute"!==d&&"fixed"!==d&&(c-=b.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){c-=a(this).outerHeight(!0)}),this.panels.each(function(){a(this).height(Math.max(0,c-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")):"auto"===b&&(c=0,this.panels.each(function(){c=Math.max(c,a(this).height("").height())}).height(c))},_eventHandler:function(b){var c=this.options,d=this.active,e=a(b.currentTarget),f=e.closest("li"),g=f[0]===d[0],h=g&&c.collapsible,i=h?a():this._getPanelForTab(f),j=d.length?this._getPanelForTab(d):a(),k={oldTab:d,oldPanel:j,newTab:h?a():f,newPanel:i};b.preventDefault(),f.hasClass("ui-state-disabled")||f.hasClass("ui-tabs-loading")||this.running||g&&!c.collapsible||this._trigger("beforeActivate",b,k)===!1||(c.active=h?!1:this.tabs.index(f),this.active=g?a():f,this.xhr&&this.xhr.abort(),j.length||i.length||a.error("jQuery UI Tabs: Mismatching fragment identifier."),i.length&&this.load(this.tabs.index(f),b),this._toggle(b,k))},_toggle:function(b,c){function d(){f.running=!1,f._trigger("activate",b,c)}function e(){c.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),g.length&&f.options.show?f._show(g,f.options.show,d):(g.show(),d())}var f=this,g=c.newPanel,h=c.oldPanel;this.running=!0,h.length&&this.options.hide?this._hide(h,this.options.hide,function(){c.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),e()}):(c.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),h.hide(),e()),h.attr({"aria-expanded":"false","aria-hidden":"true"}),c.oldTab.attr("aria-selected","false"),g.length&&h.length?c.oldTab.attr("tabIndex",-1):g.length&&this.tabs.filter(function(){return 0===a(this).attr("tabIndex")}).attr("tabIndex",-1),g.attr({"aria-expanded":"true","aria-hidden":"false"}),c.newTab.attr({"aria-selected":"true",tabIndex:0})
-},_activate:function(b){var c,d=this._findActive(b);d[0]!==this.active[0]&&(d.length||(d=this.active),c=d.find(".ui-tabs-anchor")[0],this._eventHandler({target:c,currentTarget:c,preventDefault:a.noop}))},_findActive:function(b){return b===!1?a():this.tabs.eq(b)},_getIndex:function(a){return"string"==typeof a&&(a=this.anchors.index(this.anchors.filter("[href$='"+a+"']"))),a},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){a.data(this,"ui-tabs-destroy")?a(this).remove():a(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var b=a(this),c=b.data("ui-tabs-aria-controls");c?b.attr("aria-controls",c).removeData("ui-tabs-aria-controls"):b.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(c){var d=this.options.disabled;d!==!1&&(c===b?d=!1:(c=this._getIndex(c),d=a.isArray(d)?a.map(d,function(a){return a!==c?a:null}):a.map(this.tabs,function(a,b){return b!==c?b:null})),this._setupDisabled(d))},disable:function(c){var d=this.options.disabled;if(d!==!0){if(c===b)d=!0;else{if(c=this._getIndex(c),-1!==a.inArray(c,d))return;d=a.isArray(d)?a.merge([c],d).sort():[c]}this._setupDisabled(d)}},load:function(b,c){b=this._getIndex(b);var e=this,f=this.tabs.eq(b),g=f.find(".ui-tabs-anchor"),h=this._getPanelForTab(f),i={tab:f,panel:h};d(g[0])||(this.xhr=a.ajax(this._ajaxSettings(g,c,i)),this.xhr&&"canceled"!==this.xhr.statusText&&(f.addClass("ui-tabs-loading"),h.attr("aria-busy","true"),this.xhr.success(function(a){setTimeout(function(){h.html(a),e._trigger("load",c,i)},1)}).complete(function(a,b){setTimeout(function(){"abort"===b&&e.panels.stop(!1,!0),f.removeClass("ui-tabs-loading"),h.removeAttr("aria-busy"),a===e.xhr&&delete e.xhr},1)})))},_ajaxSettings:function(b,c,d){var e=this;return{url:b.attr("href"),beforeSend:function(b,f){return e._trigger("beforeLoad",c,a.extend({jqXHR:b,ajaxSettings:f},d))}}},_getPanelForTab:function(b){var c=a(b).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+c))}})}(a),function(){}(a),function(a,b){function c(a){e=a.originalEvent,i=e.accelerationIncludingGravity,f=Math.abs(i.x),g=Math.abs(i.y),h=Math.abs(i.z),!b.orientation&&(f>7||(h>6&&8>g||8>h&&g>6)&&f>5)?d.enabled&&d.disable():d.enabled||d.enable()}a.mobile.iosorientationfixEnabled=!0;var d,e,f,g,h,i,j=navigator.userAgent;return/iPhone|iPad|iPod/.test(navigator.platform)&&/OS [1-5]_[0-9_]* like Mac OS X/i.test(j)&&j.indexOf("AppleWebKit")>-1?(d=a.mobile.zoom,void a.mobile.document.on("mobileinit",function(){a.mobile.iosorientationfixEnabled&&a.mobile.window.bind("orientationchange.iosorientationfix",d.enable).bind("devicemotion.iosorientationfix",c)})):void(a.mobile.iosorientationfixEnabled=!1)}(a,this),function(a,b){function d(){e.removeClass("ui-mobile-rendering")}var e=a("html"),f=a.mobile.window;a(b.document).trigger("mobileinit"),a.mobile.gradeA()&&(a.mobile.ajaxBlacklist&&(a.mobile.ajaxEnabled=!1),e.addClass("ui-mobile ui-mobile-rendering"),setTimeout(d,5e3),a.extend(a.mobile,{initializePage:function(){var b=a.mobile.path,e=a(":jqmData(role='page'), :jqmData(role='dialog')"),g=b.stripHash(b.stripQueryParams(b.parseLocation().hash)),h=a.mobile.path.parseLocation(),i=c.getElementById(g);e.length||(e=a("body").wrapInner("
").children(0)),e.each(function(){var b=a(this);b[0].getAttribute("data-"+a.mobile.ns+"url")||b.attr("data-"+a.mobile.ns+"url",b.attr("id")||h.pathname+h.search)}),a.mobile.firstPage=e.first(),a.mobile.pageContainer=a.mobile.firstPage.parent().addClass("ui-mobile-viewport").pagecontainer(),a.mobile.navreadyDeferred.resolve(),f.trigger("pagecontainercreate"),a.mobile.loading("show"),d(),a.mobile.hashListeningEnabled&&a.mobile.path.isHashValid(location.hash)&&(a(i).is(":jqmData(role='page')")||a.mobile.path.isPath(g)||g===a.mobile.dialogHashKey)?a.event.special.navigate.isPushStateEnabled()?(a.mobile.navigate.history.stack=[],a.mobile.navigate(a.mobile.path.isPath(location.hash)?location.hash:location.href)):f.trigger("hashchange",[!0]):(a.mobile.path.isHashValid(location.hash)&&(a.mobile.navigate.history.initialDst=g.replace("#","")),a.event.special.navigate.isPushStateEnabled()&&a.mobile.navigate.navigator.squash(b.parseLocation().href),a.mobile.changePage(a.mobile.firstPage,{transition:"none",reverse:!0,changeHash:!1,fromHashChange:!0}))}}),a(function(){a.support.inlineSVG(),a.mobile.hideUrlBar&&b.scrollTo(0,1),a.mobile.defaultHomeScroll=a.support.scrollTop&&1!==a.mobile.window.scrollTop()?1:0,a.mobile.autoInitializePage&&a.mobile.initializePage(),a.mobile.hideUrlBar&&f.load(a.mobile.silentScroll),a.support.cssPointerEvents||a.mobile.document.delegate(".ui-state-disabled,.ui-disabled","vclick",function(a){a.preventDefault(),a.stopImmediatePropagation()})}))}(a,this)});
-//# sourceMappingURL=jquery.mobile.min.map
\ No newline at end of file
diff --git a/html5/verto/verto_communicator/js/material-design/material.js b/html5/verto/verto_communicator/js/material-design/material.js
deleted file mode 100755
index a315edeb09..0000000000
--- a/html5/verto/verto_communicator/js/material-design/material.js
+++ /dev/null
@@ -1,232 +0,0 @@
-/* globals jQuery */
-
-(function($) {
- // Selector to select only not already processed elements
- $.expr[":"].notmdproc = function(obj){
- if ($(obj).data("mdproc")) {
- return false;
- } else {
- return true;
- }
- };
-
- function _isChar(evt) {
- if (typeof evt.which == "undefined") {
- return true;
- } else if (typeof evt.which == "number" && evt.which > 0) {
- return !evt.ctrlKey && !evt.metaKey && !evt.altKey && evt.which != 8 && evt.which != 9;
- }
- return false;
- }
-
- $.material = {
- "options": {
- // These options set what will be started by $.material.init()
- "input": true,
- "ripples": true,
- "checkbox": true,
- "togglebutton": true,
- "radio": true,
- "arrive": true,
- "autofill": false,
-
- "withRipples": [
- ".btn:not(.btn-link)",
- ".card-image",
- ".navbar a:not(.withoutripple)",
- ".dropdown-menu a",
- ".nav-tabs a:not(.withoutripple)",
- ".withripple"
- ].join(","),
- "inputElements": "input.form-control, textarea.form-control, select.form-control",
- "checkboxElements": ".checkbox > label > input[type=checkbox]",
- "togglebuttonElements": ".togglebutton > label > input[type=checkbox]",
- "radioElements": ".radio > label > input[type=radio]"
- },
- "checkbox": function(selector) {
- // Add fake-checkbox to material checkboxes
- $((selector) ? selector : this.options.checkboxElements)
- .filter(":notmdproc")
- .data("mdproc", true)
- .after("
");
- },
- "togglebutton": function(selector) {
- // Add fake-checkbox to material checkboxes
- $((selector) ? selector : this.options.togglebuttonElements)
- .filter(":notmdproc")
- .data("mdproc", true)
- .after("
");
- },
- "radio": function(selector) {
- // Add fake-radio to material radios
- $((selector) ? selector : this.options.radioElements)
- .filter(":notmdproc")
- .data("mdproc", true)
- .after("
");
- },
- "input": function(selector) {
- $((selector) ? selector : this.options.inputElements)
- .filter(":notmdproc")
- .data("mdproc", true)
- .each( function() {
- var $this = $(this);
-
- if (!$(this).attr("data-hint") && !$this.hasClass("floating-label")) {
- return;
- }
- $this.wrap("
");
- $this.after("
");
-
- // Add floating label if required
- if ($this.hasClass("floating-label")) {
- var placeholder = $this.attr("placeholder");
- $this.attr("placeholder", null).removeClass("floating-label");
- $this.after("
" + placeholder + "
");
- }
-
- // Add hint label if required
- if ($this.attr("data-hint")) {
- $this.after("
" + $this.attr("data-hint") + "
");
- }
-
- // Set as empty if is empty (damn I must improve this...)
- if ($this.val() === null || $this.val() == "undefined" || $this.val() === "") {
- $this.addClass("empty");
- }
-
- // Support for file input
- if ($this.parent().next().is("[type=file]")) {
- $this.parent().addClass("fileinput");
- var $input = $this.parent().next().detach();
- $this.after($input);
- }
- });
-
- $(document)
- .on("change", ".checkbox input[type=checkbox]", function() { $(this).blur(); })
- .on("keydown paste", ".form-control", function(e) {
- if(_isChar(e)) {
- $(this).removeClass("empty");
- }
- })
- .on("keyup change", ".form-control", function() {
- var $this = $(this);
- if ($this.val() === "" && (typeof $this[0].checkValidity != "undefined" && $this[0].checkValidity())) {
- $this.addClass("empty");
- } else {
- $this.removeClass("empty");
- }
- })
- .on("focus", ".form-control-wrapper.fileinput", function() {
- $(this).find("input").addClass("focus");
- })
- .on("blur", ".form-control-wrapper.fileinput", function() {
- $(this).find("input").removeClass("focus");
- })
- .on("change", ".form-control-wrapper.fileinput [type=file]", function() {
- var value = "";
- $.each($(this)[0].files, function(i, file) {
- value += file.name + ", ";
- });
- value = value.substring(0, value.length - 2);
- if (value) {
- $(this).prev().removeClass("empty");
- } else {
- $(this).prev().addClass("empty");
- }
- $(this).prev().val(value);
- });
- },
- "ripples": function(selector) {
- $((selector) ? selector : this.options.withRipples).ripples();
- },
- "autofill": function() {
-
- // This part of code will detect autofill when the page is loading (username and password inputs for example)
- var loading = setInterval(function() {
- $("input[type!=checkbox]").each(function() {
- if ($(this).val() && $(this).val() !== $(this).attr("value")) {
- $(this).trigger("change");
- }
- });
- }, 100);
-
- // After 10 seconds we are quite sure all the needed inputs are autofilled then we can stop checking them
- setTimeout(function() {
- clearInterval(loading);
- }, 10000);
- // Now we just listen on inputs of the focused form (because user can select from the autofill dropdown only when the input has focus)
- var focused;
- $(document)
- .on("focus", "input", function() {
- var $inputs = $(this).parents("form").find("input").not("[type=file]");
- focused = setInterval(function() {
- $inputs.each(function() {
- if ($(this).val() !== $(this).attr("value")) {
- $(this).trigger("change");
- }
- });
- }, 100);
- })
- .on("blur", "input", function() {
- clearInterval(focused);
- });
- },
- "init": function() {
- if ($.fn.ripples && this.options.ripples) {
- console.log('ripples');
- this.ripples();
- }
- if (this.options.input) {
- console.log('input');
- this.input();
- }
- if (this.options.checkbox) {
- console.log('checkbox');
- this.checkbox();
- }
- if (this.options.togglebutton) {
- console.log('togglebutton');
- this.togglebutton();
- }
- if (this.options.radio) {
- console.log('radio');
- this.radio();
- }
- if (this.options.autofill) {
- console.log('autofill');
- this.autofill();
- }
-
- if (document.arrive && this.options.arrive) {
- if ($.fn.ripples && this.options.ripples) {
- $(document).arrive(this.options.withRipples, function() {
- $.material.ripples($(this));
- });
- }
- if (this.options.input) {
- $(document).arrive(this.options.inputElements, function() {
- $.material.input($(this));
- });
- }
- if (this.options.checkbox) {
- $(document).arrive(this.options.checkboxElements, function() {
- $.material.checkbox($(this));
- });
- }
- if (this.options.radio) {
- $(document).arrive(this.options.radioElements, function() {
- $.material.radio($(this));
- });
- }
- if (this.options.togglebutton) {
- $(document).arrive(this.options.togglebuttonElements, function() {
- $.material.togglebutton($(this));
- });
- }
-
- }
- }
- };
-
-})(jQuery);
diff --git a/html5/verto/verto_communicator/js/material-design/material.min.js b/html5/verto/verto_communicator/js/material-design/material.min.js
deleted file mode 100755
index dc4958a9b7..0000000000
--- a/html5/verto/verto_communicator/js/material-design/material.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-!function(a){function b(a){return"undefined"==typeof a.which?!0:"number"==typeof a.which&&a.which>0?!a.ctrlKey&&!a.metaKey&&!a.altKey&&8!=a.which&&9!=a.which:!1}a.expr[":"].notmdproc=function(b){return a(b).data("mdproc")?!1:!0},a.material={options:{input:!0,ripples:!0,checkbox:!0,togglebutton:!0,radio:!0,arrive:!0,autofill:!1,withRipples:[".btn:not(.btn-link)",".card-image",".navbar a:not(.withoutripple)",".dropdown-menu a",".nav-tabs a:not(.withoutripple)",".withripple"].join(","),inputElements:"input.form-control, textarea.form-control, select.form-control",checkboxElements:".checkbox > label > input[type=checkbox]",togglebuttonElements:".togglebutton > label > input[type=checkbox]",radioElements:".radio > label > input[type=radio]"},checkbox:function(b){a(b?b:this.options.checkboxElements).filter(":notmdproc").data("mdproc",!0).after("
")},togglebutton:function(b){a(b?b:this.options.togglebuttonElements).filter(":notmdproc").data("mdproc",!0).after("
")},radio:function(b){a(b?b:this.options.radioElements).filter(":notmdproc").data("mdproc",!0).after("
")},input:function(c){a(c?c:this.options.inputElements).filter(":notmdproc").data("mdproc",!0).each(function(){var b=a(this);if(a(this).attr("data-hint")||b.hasClass("floating-label")){if(b.wrap("
"),b.after("
"),b.hasClass("floating-label")){var c=b.attr("placeholder");b.attr("placeholder",null).removeClass("floating-label"),b.after("
"+c+"
")}if(b.attr("data-hint")&&b.after("
"+b.attr("data-hint")+"
"),(null===b.val()||"undefined"==b.val()||""===b.val())&&b.addClass("empty"),b.parent().next().is("[type=file]")){b.parent().addClass("fileinput");var d=b.parent().next().detach();b.after(d)}}}),a(document).on("change",".checkbox input[type=checkbox]",function(){a(this).blur()}).on("keydown paste",".form-control",function(c){b(c)&&a(this).removeClass("empty")}).on("keyup change",".form-control",function(){var b=a(this);""===b.val()&&"undefined"!=typeof b[0].checkValidity&&b[0].checkValidity()?b.addClass("empty"):b.removeClass("empty")}).on("focus",".form-control-wrapper.fileinput",function(){a(this).find("input").addClass("focus")}).on("blur",".form-control-wrapper.fileinput",function(){a(this).find("input").removeClass("focus")}).on("change",".form-control-wrapper.fileinput [type=file]",function(){var b="";a.each(a(this)[0].files,function(a,c){b+=c.name+", "}),b=b.substring(0,b.length-2),b?a(this).prev().removeClass("empty"):a(this).prev().addClass("empty"),a(this).prev().val(b)})},ripples:function(b){a(b?b:this.options.withRipples).ripples()},autofill:function(){var b=setInterval(function(){a("input[type!=checkbox]").each(function(){a(this).val()&&a(this).val()!==a(this).attr("value")&&a(this).trigger("change")})},100);setTimeout(function(){clearInterval(b)},1e4);var c;a(document).on("focus","input",function(){var b=a(this).parents("form").find("input").not("[type=file]");c=setInterval(function(){b.each(function(){a(this).val()!==a(this).attr("value")&&a(this).trigger("change")})},100)}).on("blur","input",function(){clearInterval(c)})},init:function(){a.fn.ripples&&this.options.ripples&&this.ripples(),this.options.input&&this.input(),this.options.checkbox&&this.checkbox(),this.options.togglebutton&&this.togglebutton(),this.options.radio&&this.radio(),this.options.autofill&&this.autofill(),document.arrive&&this.options.arrive&&(a.fn.ripples&&this.options.ripples&&a(document).arrive(this.options.withRipples,function(){a.material.ripples(a(this))}),this.options.input&&a(document).arrive(this.options.inputElements,function(){a.material.input(a(this))}),this.options.checkbox&&a(document).arrive(this.options.checkboxElements,function(){a.material.checkbox(a(this))}),this.options.radio&&a(document).arrive(this.options.radioElements,function(){a.material.radio(a(this))}),this.options.togglebutton&&a(document).arrive(this.options.togglebuttonElements,function(){a.material.togglebutton(a(this))}))}}}(jQuery);
-//# sourceMappingURL=material.min.js.map
\ No newline at end of file
diff --git a/html5/verto/verto_communicator/js/material-design/ripples.js b/html5/verto/verto_communicator/js/material-design/ripples.js
deleted file mode 100755
index 634dfdf35e..0000000000
--- a/html5/verto/verto_communicator/js/material-design/ripples.js
+++ /dev/null
@@ -1,324 +0,0 @@
-/* Copyright 2014+, Federico Zivolo, LICENSE at https://github.com/FezVrasta/bootstrap-material-design/blob/master/LICENSE.md */
-/* globals jQuery, navigator */
-
-(function($, window, document, undefined) {
-
- "use strict";
-
- /**
- * Define the name of the plugin
- */
- var ripples = "ripples";
-
-
- /**
- * Get an instance of the plugin
- */
- var self = null;
-
-
- /**
- * Define the defaults of the plugin
- */
- var defaults = {};
-
-
- /**
- * Create the main plugin function
- */
- function Ripples(element, options) {
- self = this;
-
- this.element = $(element);
-
- this.options = $.extend({}, defaults, options);
-
- this._defaults = defaults;
- this._name = ripples;
-
- this.init();
- }
-
-
- /**
- * Initialize the plugin
- */
- Ripples.prototype.init = function() {
- var $element = this.element;
-
- $element.on("mousedown touchstart", function(event) {
- /**
- * Verify if the user is just touching on a device and return if so
- */
- if(self.isTouch() && event.type === "mousedown") {
- return;
- }
-
-
- /**
- * Verify if the current element already has a ripple wrapper element and
- * creates if it doesn't
- */
- if(!($element.find(".ripple-wrapper").length)) {
- $element.append("
");
- }
-
-
- /**
- * Find the ripple wrapper
- */
- var $wrapper = $element.children(".ripple-wrapper");
-
-
- /**
- * Get relY and relX positions
- */
- var relY = self.getRelY($wrapper, event);
- var relX = self.getRelX($wrapper, event);
-
-
- /**
- * If relY and/or relX are false, return the event
- */
- if(!relY && !relX) {
- return;
- }
-
-
- /**
- * Get the ripple color
- */
- var rippleColor = self.getRipplesColor($element);
-
-
- /**
- * Create the ripple element
- */
- var $ripple = $("
");
-
- $ripple
- .addClass("ripple")
- .css({
- "left": relX,
- "top": relY,
- "background-color": rippleColor
- });
-
-
- /**
- * Append the ripple to the wrapper
- */
- $wrapper.append($ripple);
-
-
- /**
- * Make sure the ripple has the styles applied (ugly hack but it works)
- */
- (function() { return window.getComputedStyle($ripple[0]).opacity; })();
-
-
- /**
- * Turn on the ripple animation
- */
- self.rippleOn($element, $ripple);
-
-
- /**
- * Call the rippleEnd function when the transition "on" ends
- */
- setTimeout(function() {
- self.rippleEnd($ripple);
- }, 500);
-
-
- /**
- * Detect when the user leaves the element
- */
- $element.on("mouseup mouseleave touchend", function() {
- $ripple.data("mousedown", "off");
-
- if($ripple.data("animating") === "off") {
- self.rippleOut($ripple);
- }
- });
-
- });
- };
-
-
- /**
- * Get the new size based on the element height/width and the ripple width
- */
- Ripples.prototype.getNewSize = function($element, $ripple) {
-
- return (Math.max($element.outerWidth(), $element.outerHeight()) / $ripple.outerWidth()) * 2.5;
- };
-
-
- /**
- * Get the relX
- */
- Ripples.prototype.getRelX = function($wrapper, event) {
- var wrapperOffset = $wrapper.offset();
-
- if(!self.isTouch()) {
- /**
- * Get the mouse position relative to the ripple wrapper
- */
- return event.pageX - wrapperOffset.left;
- } else {
- /**
- * Make sure the user is using only one finger and then get the touch
- * position relative to the ripple wrapper
- */
- event = event.originalEvent;
-
- if(event.touches.length === 1) {
- return event.touches[0].pageX - wrapperOffset.left;
- }
-
- return false;
- }
- };
-
-
- /**
- * Get the relY
- */
- Ripples.prototype.getRelY = function($wrapper, event) {
- var wrapperOffset = $wrapper.offset();
-
- if(!self.isTouch()) {
- /**
- * Get the mouse position relative to the ripple wrapper
- */
- return event.pageY - wrapperOffset.top;
- } else {
- /**
- * Make sure the user is using only one finger and then get the touch
- * position relative to the ripple wrapper
- */
- event = event.originalEvent;
-
- if(event.touches.length === 1) {
- return event.touches[0].pageY - wrapperOffset.top;
- }
-
- return false;
- }
- };
-
-
- /**
- * Get the ripple color
- */
- Ripples.prototype.getRipplesColor = function($element) {
-
- var color = $element.data("ripple-color") ? $element.data("ripple-color") : window.getComputedStyle($element[0]).color;
-
- return color;
- };
-
-
- /**
- * Verify if the client browser has transistion support
- */
- Ripples.prototype.hasTransitionSupport = function() {
- var thisBody = document.body || document.documentElement;
- var thisStyle = thisBody.style;
-
- var support = (
- thisStyle.transition !== undefined ||
- thisStyle.WebkitTransition !== undefined ||
- thisStyle.MozTransition !== undefined ||
- thisStyle.MsTransition !== undefined ||
- thisStyle.OTransition !== undefined
- );
-
- return support;
- };
-
-
- /**
- * Verify if the client is using a mobile device
- */
- Ripples.prototype.isTouch = function() {
- return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
- };
-
-
- /**
- * End the animation of the ripple
- */
- Ripples.prototype.rippleEnd = function($ripple) {
- $ripple.data("animating", "off");
-
- if($ripple.data("mousedown") === "off") {
- self.rippleOut($ripple);
- }
- };
-
-
- /**
- * Turn off the ripple effect
- */
- Ripples.prototype.rippleOut = function($ripple) {
- $ripple.off();
-
- if(self.hasTransitionSupport()) {
- $ripple.addClass("ripple-out");
- } else {
- $ripple.animate({"opacity": 0}, 100, function() {
- $ripple.trigger("transitionend");
- });
- }
-
- $ripple.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd", function() {
- $ripple.remove();
- });
- };
-
-
- /**
- * Turn on the ripple effect
- */
- Ripples.prototype.rippleOn = function($element, $ripple) {
- var size = self.getNewSize($element, $ripple);
-
- if(self.hasTransitionSupport()) {
- $ripple
- .css({
- "-ms-transform": "scale(" + size + ")",
- "-moz-transform": "scale(" + size + ")",
- "-webkit-transform": "scale(" + size + ")",
- "transform": "scale(" + size + ")"
- })
- .addClass("ripple-on")
- .data("animating", "on")
- .data("mousedown", "on");
- } else {
- $ripple.animate({
- "width": Math.max($element.outerWidth(), $element.outerHeight()) * 2,
- "height": Math.max($element.outerWidth(), $element.outerHeight()) * 2,
- "margin-left": Math.max($element.outerWidth(), $element.outerHeight()) * (-1),
- "margin-top": Math.max($element.outerWidth(), $element.outerHeight()) * (-1),
- "opacity": 0.2
- }, 500, function() {
- $ripple.trigger("transitionend");
- });
- }
- };
-
-
- /**
- * Create the jquery plugin function
- */
- $.fn.ripples = function(options) {
- return this.each(function() {
- if(!$.data(this, "plugin_" + ripples)) {
- $.data(this, "plugin_" + ripples, new Ripples(this, options));
- }
- });
- };
-
-})(jQuery, window, document);
diff --git a/html5/verto/verto_communicator/js/material-design/ripples.min.js b/html5/verto/verto_communicator/js/material-design/ripples.min.js
deleted file mode 100755
index a1b233b5d3..0000000000
--- a/html5/verto/verto_communicator/js/material-design/ripples.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-!function(a,b,c,d){"use strict";function e(b,c){g=this,this.element=a(b),this.options=a.extend({},h,c),this._defaults=h,this._name=f,this.init()}var f="ripples",g=null,h={};e.prototype.init=function(){var c=this.element;c.on("mousedown touchstart",function(d){if(!g.isTouch()||"mousedown"!==d.type){c.find(".ripple-wrapper").length||c.append('
');var e=c.children(".ripple-wrapper"),f=g.getRelY(e,d),h=g.getRelX(e,d);if(f||h){var i=g.getRipplesColor(c),j=a("
");j.addClass("ripple").css({left:h,top:f,"background-color":i}),e.append(j),function(){return b.getComputedStyle(j[0]).opacity}(),g.rippleOn(c,j),setTimeout(function(){g.rippleEnd(j)},500),c.on("mouseup mouseleave touchend",function(){j.data("mousedown","off"),"off"===j.data("animating")&&g.rippleOut(j)})}}})},e.prototype.getNewSize=function(a,b){return Math.max(a.outerWidth(),a.outerHeight())/b.outerWidth()*2.5},e.prototype.getRelX=function(a,b){var c=a.offset();return g.isTouch()?(b=b.originalEvent,1!==b.touches.length?b.touches[0].pageX-c.left:!1):b.pageX-c.left},e.prototype.getRelY=function(a,b){var c=a.offset();return g.isTouch()?(b=b.originalEvent,1!==b.touches.length?b.touches[0].pageY-c.top:!1):b.pageY-c.top},e.prototype.getRipplesColor=function(a){var c=a.data("ripple-color")?a.data("ripple-color"):b.getComputedStyle(a[0]).color;return c},e.prototype.hasTransitionSupport=function(){var a=c.body||c.documentElement,b=a.style,e=b.transition!==d||b.WebkitTransition!==d||b.MozTransition!==d||b.MsTransition!==d||b.OTransition!==d;return e},e.prototype.isTouch=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},e.prototype.rippleEnd=function(a){a.data("animating","off"),"off"===a.data("mousedown")&&g.rippleOut(a)},e.prototype.rippleOut=function(a){a.off(),g.hasTransitionSupport()?a.addClass("ripple-out"):a.animate({opacity:0},100,function(){a.trigger("transitionend")}),a.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){a.remove()})},e.prototype.rippleOn=function(a,b){var c=g.getNewSize(a,b);g.hasTransitionSupport()?b.css({"-ms-transform":"scale("+c+")","-moz-transform":"scale("+c+")","-webkit-transform":"scale("+c+")",transform:"scale("+c+")"}).addClass("ripple-on").data("animating","on").data("mousedown","on"):b.animate({width:2*Math.max(a.outerWidth(),a.outerHeight()),height:2*Math.max(a.outerWidth(),a.outerHeight()),"margin-left":-1*Math.max(a.outerWidth(),a.outerHeight()),"margin-top":-1*Math.max(a.outerWidth(),a.outerHeight()),opacity:.2},500,function(){b.trigger("transitionend")})},a.fn.ripples=function(b){return this.each(function(){a.data(this,"plugin_"+f)||a.data(this,"plugin_"+f,new e(this,b))})}}(jQuery,window,document);
-//# sourceMappingURL=ripples.min.js.map
\ No newline at end of file
diff --git a/html5/verto/verto_communicator/package.json b/html5/verto/verto_communicator/package.json
index 15db247928..9488260240 100644
--- a/html5/verto/verto_communicator/package.json
+++ b/html5/verto/verto_communicator/package.json
@@ -2,10 +2,11 @@
"name": "verto_communicator",
"version": "0.0.1",
"devDependencies": {
- "grunt": "~0.4.5",
+ "grunt": "^0.4.5",
"grunt-contrib-connect": "^0.9.0",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-watch": "^0.6.1",
+ "grunt-wiredep": "^2.0.0",
"load-grunt-tasks": "^3.2.0"
}
}