Skip to content

Commit

Permalink
demo(Layout): fix code for IE11 (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush authored and sculove committed Dec 18, 2017
1 parent 626068b commit 7f813a9
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion demo/assets/image/FrameLayout.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion demo/assets/image/GridLayout.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion demo/assets/image/JustifiedLayout.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion demo/assets/image/PackingLayout.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion demo/assets/image/SquareLayout.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion demo/assets/js/pulltorefresh.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var ig = new eg.InfiniteGrid(contents, {
isOverflowScroll: true
});
ig.setLayout(eg.InfiniteGrid.GridLayout);
container.insertAdjacentHTML("beforeend", `<div id="prepend"></div><div id="append"></div>`);
container.insertAdjacentHTML("beforeend", '<div id="prepend"></div><div id="append"></div>');
var prepend = document.getElementById("prepend");
var append = document.getElementById("append");
var axes = new eg.Axes({
Expand Down
4 changes: 2 additions & 2 deletions demo/assets/js/search2.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ var axes = new eg.Axes({
}
});

container.insertAdjacentHTML("beforeend", `<div id="prepend"></div><div id="append"></div>`);
container.insertAdjacentHTML("beforeend", '<div id="prepend"></div><div id="append"></div>');
var prepend = document.getElementById("prepend");
var append = document.getElementById("append");
var isLoading = false;
Expand Down Expand Up @@ -138,7 +138,7 @@ axes.on({

var element = isAppend ? append : prepend;

element.style.height = `${height}px`;
element.style.height = height + "px";
if (height < 80) {
element.innerHTML = "Pull to " + (isAppend ? "append" : "prepend");
} else {
Expand Down
2 changes: 1 addition & 1 deletion demo/assets/js/table1.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ if (tempStatus) {
ig.append(groups[0], 0);
}

container.addEventListener("click", e => {
container.addEventListener("click", function(e) {
if (e.target.tagName !== "A") {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion demo/assets/js/table2.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ if (tempStatus) {
ig.append(groups[0], 0);
}

container.addEventListener("click", e => {
container.addEventListener("click", function (e) {
if (e.target.tagName !== "A") {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion demo/common/css/page.css
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ span.version:hover {
position: absolute;
left: 0;
right: 0;
margin: auto;
margin: 0px auto;
width: 100%;
animation: go 3s ease-out 0s infinite forwards;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"lint": "eslint src",
"jsdoc": "rm -rf ./doc && jsdoc -c jsdoc.json",
"coverage": "karma start --coverage",
"demo:start": "npm run demo:prebuild-latest && npm run demo:updateVersion && jekyll serve -s demo",
"demo:start": "npm run demo:prebuild-latest && npm run demo:updateVersion && jekyll serve -s demo --host 0.0.0.0",
"demo:build": "npm run demo:updateVersion && jekyll build -s demo",
"demo:prebuild-version": "cpx 'dist/**/*' demo/release/$npm_package_version/dist --clean && cpx 'doc/**/*' demo/release/$npm_package_version/doc --clean",
"demo:prebuild-latest": "cpx 'dist/**/*' demo/release/latest/dist --clean && cpx 'doc/**/*' demo/release/latest/doc --clean",
Expand Down

0 comments on commit 7f813a9

Please sign in to comment.