Deploy acpi.dortania.ml to github.com/dortania/Getting-Started-With-ACPI.git:gh-pages

This commit is contained in:
Travis Build Bot (from Travis CI)
2020-04-14 01:21:59 +00:00
parent 727bbdc432
commit c034ef5cd8
27 changed files with 1641 additions and 68 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,7 @@
.medium-zoom--opened .medium-zoom-overlay {
z-index: 998;
}
.medium-zoom-image--opened {
z-index: 999;
}

View File

@@ -0,0 +1,28 @@
require([
'gitbook'
], function(gitbook) {
const options = {
margin: 0,
background: '#fff',
scrollOffset: 40
};
const init = function() {
mediumZoom("img", options);
}
gitbook.events.bind('start', function(e, config){
const configOption = config['medium-zoom'];
if (configOption) {
for (const item in options) {
if (options.hasOwnProperty(item) && (item in configOption)) {
options[item] = configOption[item];
}
}
}
});
gitbook.events.bind('page.change', function(e, config) {
init();
});
});