Commit 31e6b971 authored by Yoshiya Hinosawa's avatar Yoshiya Hinosawa

Update todomvc-common of vanillajs example

parent 18d4f472
...@@ -274,7 +274,6 @@ label[for='toggle-all'] { ...@@ -274,7 +274,6 @@ label[for='toggle-all'] {
text-shadow: 0 0 1px #000, text-shadow: 0 0 1px #000,
0 0 10px rgba(199, 107, 107, 0.8); 0 0 10px rgba(199, 107, 107, 0.8);
-webkit-transform: scale(1.3); -webkit-transform: scale(1.3);
-ms-transform: scale(1.3);
transform: scale(1.3); transform: scale(1.3);
} }
...@@ -399,7 +398,6 @@ label[for='toggle-all'] { ...@@ -399,7 +398,6 @@ label[for='toggle-all'] {
width: 65px; width: 65px;
height: 41px; height: 41px;
-webkit-transform: rotate(90deg); -webkit-transform: rotate(90deg);
-ms-transform: rotate(90deg);
transform: rotate(90deg); transform: rotate(90deg);
-webkit-appearance: none; -webkit-appearance: none;
appearance: none; appearance: none;
......
...@@ -122,16 +122,7 @@ ...@@ -122,16 +122,7 @@
} }
function findRoot() { function findRoot() {
var base; var base = location.href.indexOf('examples/');
[/labs/, /\w*-examples/].forEach(function (href) {
var match = location.href.match(href);
if (!base && match) {
base = location.href.indexOf(match);
}
});
return location.href.substr(0, base); return location.href.substr(0, base);
} }
...@@ -177,7 +168,7 @@ ...@@ -177,7 +168,7 @@
} }
if (!framework && document.querySelector('[data-framework]')) { if (!framework && document.querySelector('[data-framework]')) {
framework = document.querySelector('[data-framework]').getAttribute('data-framework'); framework = document.querySelector('[data-framework]').dataset.framework;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment