Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
englishextra committed Apr 17, 2019
1 parent e8076fe commit db44667
Show file tree
Hide file tree
Showing 8 changed files with 124 additions and 106 deletions.
6 changes: 3 additions & 3 deletions index.html

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions libs/lovespy-muicss/css/bundle.css
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,7 @@ img.office-qrcode-img {
/*!
* share buttons
*/
.btn-toggle-holder-qrcode.mui-btn--fab,
.btn-toggle-holder-location-qrcode.mui-btn--fab,
.btn-toggle-holder-mobileapps-buttons.mui-btn--fab,
.btn-toggle-holder-share-buttons.mui-btn--fab,
.btn-toggle-holder-vk-like.mui-btn--fab {
Expand All @@ -1294,7 +1294,7 @@ img.office-qrcode-img {
margin: 0;
}

.btn-toggle-holder-qrcode.mui-btn--fab {
.btn-toggle-holder-location-qrcode.mui-btn--fab {
bottom: 13rem;
}

Expand All @@ -1310,9 +1310,9 @@ img.office-qrcode-img {
bottom: 4rem;
}

.btn-toggle-holder-qrcode.mui-btn--fab:focus,
.btn-toggle-holder-qrcode.mui-btn--fab:hover,
.btn-toggle-holder-qrcode.mui-btn--fab:active,
.btn-toggle-holder-location-qrcode.mui-btn--fab:focus,
.btn-toggle-holder-location-qrcode.mui-btn--fab:hover,
.btn-toggle-holder-location-qrcode.mui-btn--fab:active,
.btn-toggle-holder-mobileapps-buttons.mui-btn--fab:focus,
.btn-toggle-holder-mobileapps-buttons.mui-btn--fab:hover,
.btn-toggle-holder-mobileapps-buttons.mui-btn--fab:active,
Expand All @@ -1326,7 +1326,7 @@ img.office-qrcode-img {
}

.btn-toggle-holder-mobileapps-buttons .ui-icon,
.btn-toggle-holder-qrcode .ui-icon,
.btn-toggle-holder-location-qrcode .ui-icon,
.btn-toggle-holder-share-buttons .ui-icon,
.btn-toggle-holder-vk-like .ui-icon {
/*!
Expand All @@ -1341,15 +1341,15 @@ img.office-qrcode-img {
margin-left: auto;
}

.btn-toggle-holder-qrcode .ui-icon > *,
.btn-toggle-holder-location-qrcode .ui-icon > *,
.btn-toggle-holder-mobileapps-buttons .ui-icon > *,
.btn-toggle-holder-share-buttons .ui-icon > *,
.btn-toggle-holder-vk-like .ui-icon > * {
fill: currentColor;
}

@media (max-width: 959px) {
.btn-toggle-holder-qrcode.mui-btn--fab {
.btn-toggle-holder-location-qrcode.mui-btn--fab {
display: none;
}
}
Expand All @@ -1363,7 +1363,7 @@ img.office-qrcode-img {
}

@media (max-height: 559px) {
.btn-toggle-holder-qrcode.mui-btn--fab {
.btn-toggle-holder-location-qrcode.mui-btn--fab {
display: none;
}
}
Expand Down
2 changes: 1 addition & 1 deletion libs/lovespy-muicss/css/bundle.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion libs/lovespy-muicss/css/critical.css

Large diffs are not rendered by default.

91 changes: 50 additions & 41 deletions libs/lovespy-muicss/js/bundle.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
/*jslint browser: true */
/*jslint node: true */
/*global $readMoreJS, ActiveXObject, addClass, addListener, appendFragment,
console, dataSrcImgClass, dataSrcIframeClass, debounce, DISQUS, doesFontExist,
console, dataSrcIframeClass, dataSrcImgClass, debounce, DISQUS, doesFontExist,
earlySvgSupport, earlySvgasimgSupport, earlyHasTouch, earlyDeviceType,
earlyDeviceFormfactor, EventEmitter, findPos, forcedHTTP, getByClass,
getHumanDate, hasClass, hasTouch, hasWheel, hljs, IframeLightbox, imgLightbox,
insertExternalHTML, insertFromTemplate, insertTextAsFragment, instgrm,
isNodejs, isElectron, isNwjs, isValidId, JsonHashRouter, LazyLoad,
loadDeferred, LoadingSpinner, loadJsCss, loadJsonResponse, Macy,
manageImgLightbox, manageIframeLightbox, manageExternalLinkAll,
manageDataQrcodeImgAll, manageDataSrcImgAll, manageDataSrcIframeAll, Minigrid,
Mustache, needsPolyfills, openDeviceBrowser, parseLink, progressBar, Promise,
QRCode, removeChildren, removeClass, removeListener, renderTemplate, require,
ripple, safelyParseJSON, scroll2Top, setDisplayBlock, setDisplayNone,
supportsCanvas, supportsPassive, supportsSvgSmilAnimation, t, throttle,
toggleClass, twttr, unescape, VK, WheelIndicator, Ya*/
manageImgLightbox, manageIframeLightbox, manageExpandingLayerAll,
manageExternalLinkAll, manageDataQrcodeImgAll, manageDataSrcImgAll,
manageDataSrcIframeAll, Minigrid, Mustache, needsPolyfills, openDeviceBrowser,
parseLink, progressBar, Promise, QRCode, removeChildren, removeClass,
removeListener, renderTemplate, require, ripple, safelyParseJSON, scroll2Top,
setDisplayBlock, setDisplayNone, supportsCanvas, supportsPassive,
supportsSvgSmilAnimation, t, throttle, toggleClass, twttr, unescape, VK,
WheelIndicator, Ya*/
/*property console, join, split */
/*!
* safe way to handle console.log
Expand Down Expand Up @@ -140,7 +141,7 @@ toggleClass, twttr, unescape, VK, WheelIndicator, Ya*/
* Does not handle differences in the Event-objects.
* @see {@link https://github.com/finn-no/eventlistener}
*/
var wrapListener = function (standard, fallback) {
var setListener = function (standard, fallback) {
return function (el, type, listener, useCapture) {
if (el[standard]) {
el[standard](type, listener, useCapture);
Expand All @@ -151,8 +152,8 @@ toggleClass, twttr, unescape, VK, WheelIndicator, Ya*/
}
};
};
root.addListener = wrapListener("addEventListener", "attachEvent");
root.removeListener = wrapListener("removeEventListener", "detachEvent");
root.addListener = setListener("addEventListener", "attachEvent");
root.removeListener = setListener("removeEventListener", "detachEvent");

/*!
* get elements by class name wrapper
Expand Down Expand Up @@ -1016,6 +1017,42 @@ toggleClass, twttr, unescape, VK, WheelIndicator, Ya*/
}
};

/*!
* manageExpandingLayerAll
*/
root.manageExpandingLayerAll = function (callback) {
var cb = function () {
return callback && "function" === typeof callback && callback();
};
var btn = getByClass(document, "btn-expand-hidden-layer") || "";
var isActiveClass = "is-active";
var isBindedClass = "is-binded";
var arrange = function (e) {
var handle = function () {
var _this = this;
var layer = _this.parentNode ? _this.parentNode.nextElementSibling : "";
if (layer) {
toggleClass(_this, isActiveClass);
toggleClass(layer, isActiveClass);
cb();
}
return;
};
if (!hasClass(e, isBindedClass)) {
addListener(e, "click", handle);
addClass(e, isBindedClass);
}
};
if (btn) {
var i,
l;
for (i = 0, l = btn.length; i < l; i += 1) {
arrange(btn[i]);
}
i = l = null;
}
};

/*!
* LoadingSpinner
*/
Expand Down Expand Up @@ -1381,34 +1418,6 @@ toggleClass, twttr, unescape, VK, WheelIndicator, Ya*/
}
};

var manageExpandingLayerAll = function () {
var btn = getByClass(document, "btn-expand-hidden-layer") || "";
var arrange = function (e) {
var handle = function () {
var _this = this;
var s = _this.nextElementSibling || "";
if (s) {
toggleClass(_this, isActiveClass);
toggleClass(s, isActiveClass);
updateMinigrid();
}
return;
};
if (!hasClass(e, isBindedClass)) {
addListener(e, "click", handle);
addClass(e, isBindedClass);
}
};
if (btn) {
var i,
l;
for (i = 0, l = btn.length; i < l; i += 1) {
arrange(btn[i]);
}
i = l = null;
}
};

var appContentId = "app-content";

var appContent = document.getElementById(appContentId) || "";
Expand Down Expand Up @@ -1450,7 +1459,7 @@ toggleClass, twttr, unescape, VK, WheelIndicator, Ya*/
addListener(root, "hashchange", manageCollapsableAll);

var manageLocationQrcode = function () {
var btn = getByClass(document, "btn-toggle-holder-qrcode")[0] || "";
var btn = getByClass(document, "btn-toggle-holder-location-qrcode")[0] || "";
var holder = getByClass(document, "holder-location-qrcode")[0] || "";
var locHref = root.location.href || "";
var hideHolder = function () {
Expand Down Expand Up @@ -2448,7 +2457,7 @@ toggleClass, twttr, unescape, VK, WheelIndicator, Ya*/
manageDropdownBtnAll();
manageHljs();
manageRipple();
manageExpandingLayerAll();
manageExpandingLayerAll(updateMinigrid);
manageMacy().then(function (result) {
console.log(result);
})
Expand Down
2 changes: 1 addition & 1 deletion libs/lovespy-muicss/js/bundle.min.js

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions libs/lovespy-muicss/scss/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,7 @@ img.office-qrcode-img {
* share buttons
*/

.btn-toggle-holder-qrcode.mui-btn--fab,
.btn-toggle-holder-location-qrcode.mui-btn--fab,
.btn-toggle-holder-mobileapps-buttons.mui-btn--fab,
.btn-toggle-holder-share-buttons.mui-btn--fab,
.btn-toggle-holder-vk-like.mui-btn--fab {
Expand All @@ -1288,7 +1288,7 @@ img.office-qrcode-img {
margin: 0;
}

.btn-toggle-holder-qrcode.mui-btn--fab {
.btn-toggle-holder-location-qrcode.mui-btn--fab {
bottom: 13.000rem;
}

Expand All @@ -1304,9 +1304,9 @@ img.office-qrcode-img {
bottom: 4.000rem;
}

.btn-toggle-holder-qrcode.mui-btn--fab:focus,
.btn-toggle-holder-qrcode.mui-btn--fab:hover,
.btn-toggle-holder-qrcode.mui-btn--fab:active,
.btn-toggle-holder-location-qrcode.mui-btn--fab:focus,
.btn-toggle-holder-location-qrcode.mui-btn--fab:hover,
.btn-toggle-holder-location-qrcode.mui-btn--fab:active,
.btn-toggle-holder-mobileapps-buttons.mui-btn--fab:focus,
.btn-toggle-holder-mobileapps-buttons.mui-btn--fab:hover,
.btn-toggle-holder-mobileapps-buttons.mui-btn--fab:active,
Expand All @@ -1320,7 +1320,7 @@ img.office-qrcode-img {
}

.btn-toggle-holder-mobileapps-buttons .ui-icon,
.btn-toggle-holder-qrcode .ui-icon,
.btn-toggle-holder-location-qrcode .ui-icon,
.btn-toggle-holder-share-buttons .ui-icon,
.btn-toggle-holder-vk-like .ui-icon {
/*!
Expand All @@ -1335,15 +1335,15 @@ img.office-qrcode-img {
margin-left: auto;
}

.btn-toggle-holder-qrcode .ui-icon > *,
.btn-toggle-holder-location-qrcode .ui-icon > *,
.btn-toggle-holder-mobileapps-buttons .ui-icon > *,
.btn-toggle-holder-share-buttons .ui-icon > *,
.btn-toggle-holder-vk-like .ui-icon > * {
fill: currentColor;
}

@media (max-width: 959px) {
.btn-toggle-holder-qrcode.mui-btn--fab {
.btn-toggle-holder-location-qrcode.mui-btn--fab {
display: none;
}
}
Expand All @@ -1357,7 +1357,7 @@ img.office-qrcode-img {
}

@media (max-height: 559px) {
.btn-toggle-holder-qrcode.mui-btn--fab {
.btn-toggle-holder-location-qrcode.mui-btn--fab {
display: none;
}
}
Expand Down

0 comments on commit db44667

Please sign in to comment.