diff --git a/doom3/menu.js b/doom3/menu.js index 10cca92..08f7020 100644 --- a/doom3/menu.js +++ b/doom3/menu.js @@ -17,6 +17,7 @@ var a = { "__models__":"-", "modelexport":"Exporting Models", +"modelexport_3dsmax":"Exporting Models with 3ds Max", "models":"Model Decls", "skins":"Skins", @@ -50,6 +51,7 @@ var a = { "editor_light":"Light Editor", "entitydefs":"EntityDefs", "mapdefs":"MapDefs", +"visportals":"Vis Portals", "__pdas__":"-", "pdas":"PDAs", diff --git a/idDevNet_files/banner-styles.css b/idDevNet_files/banner-styles.css deleted file mode 100644 index 8c5410a..0000000 --- a/idDevNet_files/banner-styles.css +++ /dev/null @@ -1,494 +0,0 @@ -@import 'record.css'; /* for SPN1 */ - -#wm-ipp-base { - min-height:65px; - padding:0; - margin:0; - border:none; - background:none transparent; -} -#wm-ipp { - z-index: 2147483647; -} -#wm-ipp, #wm-ipp * { - font-family:Lucida Grande, Helvetica, Arial, sans-serif; - font-size:12px; - line-height:1.2; - letter-spacing:0; - width:auto; - height:auto; - max-width:none; - max-height:none; - min-width:0 !important; - min-height:0; - outline:none; - float:none; - text-align:left; - border:none; - color: #000; - text-indent: 0; - position: initial; - background: none; -} -#wm-ipp div, #wm-ipp canvas { - display: block; -} -#wm-ipp div, #wm-ipp tr, #wm-ipp td, #wm-ipp a, #wm-ipp form { - padding:0; - margin:0; - border:none; - border-radius:0; - background-color:transparent; - background-image:none; - /*z-index:2147483640;*/ - height:auto; -} -#wm-ipp table { - border:none; - border-collapse:collapse; - margin:0; - padding:0; - width:auto; - font-size:inherit; -} -#wm-ipp form input { - padding:1px !important; - height:auto; - display:inline; - margin:0; - color: #000; - background: none #fff; - border: 1px solid #666; -} -#wm-ipp form input[type=submit] { - padding:0 8px !important; - margin:1px 0 1px 5px !important; - width:auto !important; - border: 1px solid #000 !important; - background: #fff !important; - color: #000 !important; -} -#wm-ipp a { - display: inline; -} -#wm-ipp a:hover{ - text-decoration:underline; -} -#wm-ipp a.wm-btn:hover { - text-decoration:none; - color:#ff0 !important; -} -#wm-ipp a.wm-btn:hover span { - color:#ff0 !important; -} -#wm-ipp #wm-ipp-inside { - margin: 0 6px; - border:5px solid #000; - border-top:none; - background-color:rgba(255,255,255,0.9); - -moz-box-shadow:1px 1px 4px #333; - -webkit-box-shadow:1px 1px 4px #333; - box-shadow:1px 1px 4px #333; - border-radius:0 0 8px 8px; -} -/* selectors are intentionally verbose to ensure priority */ -#wm-ipp #wm-logo { - padding:0 10px; - vertical-align:middle; - min-width:110px; - width:15%; -} -#wm-ipp table tr::before, #wm-ipp table tr::after { - margin: 0; - height: auto; -} -#wm-ipp table.c { - vertical-align:top; - margin-left: 4px; -} -#wm-ipp table.c td { - border:none !important; -} -#wm-ipp .c td.u { - padding:3px 0 !important; - text-align:center; -} -#wm-ipp .c td.n { - padding:0 0 0 5px !important; - vertical-align: bottom; -} -#wm-ipp .c td.n a { - text-decoration:none; - color:#33f; - font-weight:bold; -} -#wm-ipp .c td.n td.b { - padding:0 6px 0 0 !important; - text-align:right !important; - overflow:visible; - white-space:nowrap; - color:#99a; - vertical-align:middle; -} -#wm-ipp .c td.n tr.y td.b { - padding:0 6px 2px 0 !important; -} -#wm-ipp .c td.n td.c { - background:#000; - color:#ff0; - font-weight:bold; - padding:0 !important; - text-align:center; -} -#wm-ipp.hi .c td.n td.c { - color:#ec008c; -} -#wm-ipp .c td.n td.f { - padding:0 0 0 6px !important; - text-align:left !important; - overflow:visible; - white-space:nowrap; - color:#99a; - vertical-align:middle; -} -#wm-ipp .c td.n tr.m td { - text-transform:uppercase; - white-space:nowrap; - padding:2px 0; -} -#wm-ipp .c td.s { - padding:0 5px 0 0 !important; - text-align:center; - vertical-align:bottom; -} -#wm-ipp #wm-nav-captures { - white-space: nowrap; -} -#wm-ipp .c td.s a.t { - color:#33f; - font-weight:bold; - line-height: 1.8; -} -#wm-ipp .c td.s div.r { - color: #666; - font-size:9px; - white-space:nowrap; -} -#wm-ipp .c td.k { - vertical-align:bottom; - padding-bottom:2px; -} -#wm-ipp .c td.s { - padding:0 5px 2px 0 !important; -} -#wm-ipp td#displayMonthEl { - padding: 2px 0 !important; -} -#wm-ipp td#displayYearEl { - padding: 0 0 2px 0 !important; -} - -div#wm-ipp-sparkline { - position:relative;/* for positioning markers */ - white-space:nowrap; - background-color:#fff; - cursor:pointer; - line-height:0.9; -} -#sparklineImgId, #wm-sparkline-canvas { - position:relative; - z-index:9012; - max-width:none; -} -#wm-ipp-sparkline div.yt { - position:absolute; - z-index:9010 !important; - background-color:#ff0 !important; - top: 0; -} -#wm-ipp-sparkline div.mt { - position:absolute; - z-index:9013 !important; - background-color:#ec008c !important; - top: 0; -} -#wm-ipp .r { - position:relative; -} -#wm-ipp .r a { - color:#33f; - border:none; - position:relative; - background-color:transparent; - background-repeat:no-repeat !important; - background-position:100% 100% !important; - text-decoration: none; -} -#wm-ipp #wm-capinfo { - /* prevents notice div background from sticking into round corners of - #wm-ipp-inside */ - border-radius: 0 0 4px 4px; -} -#wm-ipp #wm-capinfo .c-logo { - display:block; - float:left; - margin-right:3px; - width:90px; - min-height:90px; - max-height: 290px; - border-radius:45px; - overflow:hidden; - background-position:50%; - background-size:auto 90px; - box-shadow: 0 0 2px 2px rgba(208,208,208,128) inset; -} -#wm-ipp #wm-capinfo .c-logo span { - display:inline-block; -} -#wm-ipp #wm-capinfo .c-logo img { - height:90px; - position:relative; - left:-50%; -} -#wm-ipp #wm-capinfo .wm-title { - font-size:130%; -} -#wm-ipp #wm-capinfo a.wm-selector { - display:inline-block; - color: #aaa; - text-decoration:none !important; - padding: 2px 8px; -} -#wm-ipp #wm-capinfo a.wm-selector.selected { - background-color:#666; -} -#wm-ipp #wm-capinfo a.wm-selector:hover { - color: #fff; -} -#wm-ipp #wm-capinfo.notice-only #wm-capinfo-collected-by, -#wm-ipp #wm-capinfo.notice-only #wm-capinfo-timestamps { - display: none; -} -#wm-ipp #wm-capinfo #wm-capinfo-notice .wm-capinfo-content { - background-color:#ff0; - padding:5px; - font-size:14px; - text-align:center; -} -#wm-ipp #wm-capinfo #wm-capinfo-notice .wm-capinfo-content * { - font-size:14px; - text-align:center; -} -#wm-ipp #wm-expand { - right: 1px; - bottom: -1px; - color: #ffffff; - background-color: #666 !important; - padding:0 5px 0 3px !important; - border-radius: 3px 3px 0 0 !important; -} -#wm-ipp #wm-expand span { - color: #ffffff; -} -#wm-ipp #wm-expand #wm-expand-icon { - display: inline-block; - transition: transform 0.5s; - transform-origin: 50% 45%; -} -#wm-ipp #wm-expand.wm-open #wm-expand-icon { - transform: rotate(180deg); -} -#wm-ipp #wmtb { - text-align:right; -} -#wm-ipp #wmtb #wmtbURL { - width: calc(100% - 45px); -} -#wm-ipp #wm-graph-anchor { - border-right:1px solid #ccc; -} -/* time coherence */ -html.wb-highlight { - box-shadow: inset 0 0 0 3px #a50e3a !important; -} -.wb-highlight { - outline: 3px solid #a50e3a !important; -} -#wm-ipp-print { - display:none !important; -} -@media print { -#wm-ipp-base { - display:none !important; -} -#wm-ipp-print { - display:block !important; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} -} -@media (min-width:946px) { -#wm-ipp #wm-graph-anchor { - display:block !important; -} -} -@media (max-width:945px) { -#wm-ipp #wm-graph-anchor { - display:none !important; -} -#wm-ipp table.c { - width: 85%; - width: calc(100% - 131px); -} -} -@media (max-width:1118px) { -#wm-logo { - display:none !important; -} -} - -#wm-btns { - white-space: nowrap; -} - -#wm-btns>#wm-save-snapshot-open { - margin-right: 7px; - top: -6px; -} - -#wm-btns>#wm-sign-in { - box-sizing: content-box; - display: none; - margin-right: 7px; - top: -8px; - - /* - round border around sign in button - */ - border: 2px #000 solid; - border-radius: 14px; - padding-right: 2px; - padding-bottom: 2px; - width: 11px; - height: 11px; -} - -#wm-btns>#wm-sign-in>.iconochive-person { - font-size: 12.5px; -} - -#wm-save-snapshot-open > .iconochive-web { - color:#000; - font-size:160%; -} - -#wm-ipp #wm-share { - display: flex; - align-items: flex-end; - justify-content: space-between; -} - -#wm-share > #wm-screenshot { - display: inline-block; - margin-right: 3px; - visibility: hidden; -} - -#wm-screenshot > .iconochive-image { - color:#000; - font-size:160%; -} - -#wm-btns>#wm-save-snapshot-in-progress { - display: none; - font-size:160%; - opacity: 0.5; - position: relative; - margin-right: 7px; - top: -5px; -} - -#wm-btns>#wm-save-snapshot-success { - display: none; - color: green; - position: relative; - top: -7px; -} - -#wm-btns>#wm-save-snapshot-fail { - display: none; - color: red; - position: relative; - top: -7px; -} - -.wm-icon-screen-shot { - background: url("../images/web-screenshot.svg") no-repeat !important; - background-size: contain !important; - width: 22px !important; - height: 19px !important; - - display: inline-block; -} -#donato { - transition: height 0.5s; - height: 0; - margin: 0; - padding: 0; -} -body.wm-modal { - height: auto !important; - overflow: hidden !important; -} -#donato #donato-base { - width: 100%; - height: 100%; - bottom: 0; - margin: 0; - padding: 0; - position: absolute; - z-index: 2147483639; -} -body.wm-modal #donato #donato-base { - position: fixed; - top: 0; - left: 0; - right: 0; - bottom: 0; - z-index: 2147483640; -} - -.wb-autocomplete-suggestions { - font-family: Lucida Grande, Helvetica, Arial, sans-serif; - font-size: 12px; - text-align: left; - cursor: default; - border: 1px solid #ccc; - border-top: 0; - background: #fff; - box-shadow: -1px 1px 3px rgba(0,0,0,.1); - position: absolute; - display: none; - z-index: 2147483647; - max-height: 254px; - overflow: hidden; - overflow-y: auto; - box-sizing: border-box; -} -.wb-autocomplete-suggestion { - position: relative; - padding: 0 .6em; - line-height: 23px; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - font-size: 1.02em; - color: #333; -} -.wb-autocomplete-suggestion b { - font-weight: bold; -} -.wb-autocomplete-suggestion.selected { - background: #f0f0f0; -} diff --git a/idDevNet_files/d3.gif b/idDevNet_files/d3.gif deleted file mode 100644 index 265fc5c..0000000 Binary files a/idDevNet_files/d3.gif and /dev/null differ diff --git a/idDevNet_files/donate.html b/idDevNet_files/donate.html deleted file mode 100644 index 8525c14..0000000 --- a/idDevNet_files/donate.html +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/idDevNet_files/iconochive.css b/idDevNet_files/iconochive.css deleted file mode 100644 index 7a95ea7..0000000 --- a/idDevNet_files/iconochive.css +++ /dev/null @@ -1,116 +0,0 @@ -@font-face{font-family:'Iconochive-Regular';src:url('https://archive.org/includes/fonts/Iconochive-Regular.eot?-ccsheb');src:url('https://archive.org/includes/fonts/Iconochive-Regular.eot?#iefix-ccsheb') format('embedded-opentype'),url('https://archive.org/includes/fonts/Iconochive-Regular.woff?-ccsheb') format('woff'),url('https://archive.org/includes/fonts/Iconochive-Regular.ttf?-ccsheb') format('truetype'),url('https://archive.org/includes/fonts/Iconochive-Regular.svg?-ccsheb#Iconochive-Regular') format('svg');font-weight:normal;font-style:normal} -[class^="iconochive-"],[class*=" iconochive-"]{font-family:'Iconochive-Regular'!important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale} -.iconochive-Uplevel:before{content:"\21b5"} -.iconochive-exit:before{content:"\1f6a3"} -.iconochive-beta:before{content:"\3b2"} -.iconochive-logo:before{content:"\1f3db"} -.iconochive-audio:before{content:"\1f568"} -.iconochive-movies:before{content:"\1f39e"} -.iconochive-software:before{content:"\1f4be"} -.iconochive-texts:before{content:"\1f56e"} -.iconochive-etree:before{content:"\1f3a4"} -.iconochive-image:before{content:"\1f5bc"} -.iconochive-web:before{content:"\1f5d4"} -.iconochive-collection:before{content:"\2211"} -.iconochive-folder:before{content:"\1f4c2"} -.iconochive-data:before{content:"\1f5c3"} -.iconochive-tv:before{content:"\1f4fa"} -.iconochive-article:before{content:"\1f5cf"} -.iconochive-question:before{content:"\2370"} -.iconochive-question-dark:before{content:"\3f"} -.iconochive-info:before{content:"\69"} -.iconochive-info-small:before{content:"\24d8"} -.iconochive-comment:before{content:"\1f5e9"} -.iconochive-comments:before{content:"\1f5ea"} -.iconochive-person:before{content:"\1f464"} -.iconochive-people:before{content:"\1f465"} -.iconochive-eye:before{content:"\1f441"} -.iconochive-rss:before{content:"\221e"} -.iconochive-time:before{content:"\1f551"} -.iconochive-quote:before{content:"\275d"} -.iconochive-disc:before{content:"\1f4bf"} -.iconochive-tv-commercial:before{content:"\1f4b0"} -.iconochive-search:before{content:"\1f50d"} -.iconochive-search-star:before{content:"\273d"} -.iconochive-tiles:before{content:"\229e"} -.iconochive-list:before{content:"\21f6"} -.iconochive-list-bulleted:before{content:"\2317"} -.iconochive-latest:before{content:"\2208"} -.iconochive-left:before{content:"\2c2"} -.iconochive-right:before{content:"\2c3"} -.iconochive-left-solid:before{content:"\25c2"} -.iconochive-right-solid:before{content:"\25b8"} -.iconochive-up-solid:before{content:"\25b4"} -.iconochive-down-solid:before{content:"\25be"} -.iconochive-dot:before{content:"\23e4"} -.iconochive-dots:before{content:"\25a6"} -.iconochive-columns:before{content:"\25af"} -.iconochive-sort:before{content:"\21d5"} -.iconochive-atoz:before{content:"\1f524"} -.iconochive-ztoa:before{content:"\1f525"} -.iconochive-upload:before{content:"\1f4e4"} -.iconochive-download:before{content:"\1f4e5"} -.iconochive-favorite:before{content:"\2605"} -.iconochive-heart:before{content:"\2665"} -.iconochive-play:before{content:"\25b6"} -.iconochive-play-framed:before{content:"\1f3ac"} -.iconochive-fullscreen:before{content:"\26f6"} -.iconochive-mute:before{content:"\1f507"} -.iconochive-unmute:before{content:"\1f50a"} -.iconochive-share:before{content:"\1f381"} -.iconochive-edit:before{content:"\270e"} -.iconochive-reedit:before{content:"\2710"} -.iconochive-gear:before{content:"\2699"} -.iconochive-remove-circle:before{content:"\274e"} -.iconochive-plus-circle:before{content:"\1f5d6"} -.iconochive-minus-circle:before{content:"\1f5d5"} -.iconochive-x:before{content:"\1f5d9"} -.iconochive-fork:before{content:"\22d4"} -.iconochive-trash:before{content:"\1f5d1"} -.iconochive-warning:before{content:"\26a0"} -.iconochive-flash:before{content:"\1f5f2"} -.iconochive-world:before{content:"\1f5fa"} -.iconochive-lock:before{content:"\1f512"} -.iconochive-unlock:before{content:"\1f513"} -.iconochive-twitter:before{content:"\1f426"} -.iconochive-facebook:before{content:"\66"} -.iconochive-googleplus:before{content:"\67"} -.iconochive-reddit:before{content:"\1f47d"} -.iconochive-tumblr:before{content:"\54"} -.iconochive-pinterest:before{content:"\1d4df"} -.iconochive-popcorn:before{content:"\1f4a5"} -.iconochive-email:before{content:"\1f4e7"} -.iconochive-embed:before{content:"\1f517"} -.iconochive-gamepad:before{content:"\1f579"} -.iconochive-Zoom_In:before{content:"\2b"} -.iconochive-Zoom_Out:before{content:"\2d"} -.iconochive-RSS:before{content:"\1f4e8"} -.iconochive-Light_Bulb:before{content:"\1f4a1"} -.iconochive-Add:before{content:"\2295"} -.iconochive-Tab_Activity:before{content:"\2318"} -.iconochive-Forward:before{content:"\23e9"} -.iconochive-Backward:before{content:"\23ea"} -.iconochive-No_Audio:before{content:"\1f508"} -.iconochive-Pause:before{content:"\23f8"} -.iconochive-No_Favorite:before{content:"\2606"} -.iconochive-Unike:before{content:"\2661"} -.iconochive-Song:before{content:"\266b"} -.iconochive-No_Flag:before{content:"\2690"} -.iconochive-Flag:before{content:"\2691"} -.iconochive-Done:before{content:"\2713"} -.iconochive-Check:before{content:"\2714"} -.iconochive-Refresh:before{content:"\27f3"} -.iconochive-Headphones:before{content:"\1f3a7"} -.iconochive-Chart:before{content:"\1f4c8"} -.iconochive-Bookmark:before{content:"\1f4d1"} -.iconochive-Documents:before{content:"\1f4da"} -.iconochive-Newspaper:before{content:"\1f4f0"} -.iconochive-Podcast:before{content:"\1f4f6"} -.iconochive-Radio:before{content:"\1f4fb"} -.iconochive-Cassette:before{content:"\1f4fc"} -.iconochive-Shuffle:before{content:"\1f500"} -.iconochive-Loop:before{content:"\1f501"} -.iconochive-Low_Audio:before{content:"\1f509"} -.iconochive-First:before{content:"\1f396"} -.iconochive-Invisible:before{content:"\1f576"} -.iconochive-Computer:before{content:"\1f5b3"} diff --git a/idDevNet_files/inject.js b/idDevNet_files/inject.js deleted file mode 100644 index 479f45d..0000000 --- a/idDevNet_files/inject.js +++ /dev/null @@ -1,174 +0,0 @@ -(function inject() { - const { prefs } = window.DH5A; - - let preventingPreload = false; - let monitoringUserInput = false; - - let lastCall = -2000; - - const events = { - play: new Event('play'), - playing: new Event('playing'), - pause: new Event('pause'), - }; - - const originalMediaPrototypePlay = HTMLMediaElement.prototype.play; - - const userInputMonitor = { - keydown: false, - mousedown: false, - touchstart: false, - events: [['keydown', 'keyup'], ['mousedown', 'mouseup'], ['touchstart', 'touchend']], - inputStatus: { keydown: false, mousedown: false, touchstart: false }, - listeners: {}, - - init() { - this.events.forEach(([event1, event2]) => { - this.listeners[event1] = this.onKeyDownMouseDownToushStart.bind(this); - this.listeners[event2] = this.onKeyUpMouseUpTouchEnd.bind(this, event1); - window.addEventListener(event1, this.listeners[event1], true); - window.addEventListener(event2, this.listeners[event2], true); - }); - this.listeners.onUserInput = this.onUserInput.bind(this); - window.addEventListener('dh5a_user_input', this.listeners.onUserInput); - }, - - uninit() { - this.events.forEach(([event1, event2]) => { - window.removeEventListener(event1, this.listeners[event1], true); - window.removeEventListener(event2, this.listeners[event2], true); - }); - window.removeEventListener('dh5a_user_input', this.listeners.onUserInput); - }, - - onKeyDownMouseDownToushStart(event) { - if (!event.isTrusted || (event.type === 'keydown' && event.keyCode !== 13 && event.keyCode !== 32)) { - return; - } - this.inputStatus[event.type] = true; - window.top.dispatchEvent(new CustomEvent('dh5a_user_input', { detail: { eventType: event.type, value: true } })); - }, - - onKeyUpMouseUpTouchEnd(statusName, event) { - if (!event.isTrusted || (event.type === 'keyup' && event.keyCode !== 13 && event.keyCode !== 32)) { - return; - } - setTimeout(() => { - this.inputStatus[statusName] = false; - window.top.dispatchEvent(new CustomEvent('dh5a_user_input', { detail: { eventType: statusName, value: false } })); - }, 5000); - }, - - onUserInput({ detail }) { - this.inputStatus[detail.eventType] = detail.value; - document.querySelectorAll('iframe').forEach(({ contentWindow }) => { - contentWindow.dispatchEvent(new CustomEvent('dh5a_user_input', { detail })); - }); - }, - - inputRecieved() { - return this.inputStatus.keydown || this.inputStatus.mousedown || this.inputStatus.touchstart; - }, - }; - - function findPlayerType(el) { - if (el.classList.contains('jw-video') - && el.parentElement.classList.contains('jw-media') - && el.parentElement.parentElement.classList.contains('jwplayer') - && Object.prototype.hasOwnProperty.call(window, 'jwplayer')) { - return 'JWPlayer'; - } - return 'unknownPlayer'; - } - - const stopVideo = { - JWPlayer(el) { - const jwinstance = window.jwplayer(el.parentElement.parentElement); - jwinstance.stop(); - }, - unknownPlayer(el) { - if (!el.autoplay && el.preload === 'none') { - return; - } - - if (el.autoplay) { - el.autoplay = false; - } - - if (el.preload !== 'none') { - el.preload = 'none'; - } - - el.src = el.currentSrc; - }, - }; - - function disableAutoplay(el) { - stopVideo[findPlayerType(el)](el); - } - - function onMediaLoadStart(event) { - if (event.target instanceof HTMLMediaElement && !userInputMonitor.inputRecieved()) { - disableAutoplay(event.target); - } - } - - function mediaPrototypePlay() { - if (!prefs.disableAutoplay || userInputMonitor.inputRecieved()) { - return originalMediaPrototypePlay.call(this); - } - if (findPlayerType(this) === 'JWPlayer') { - const jwinstance = window.jwplayer(this.parentElement.parentElement); - jwinstance.pause(); - } else if ((performance.now() - lastCall) > 10 - && ( - events.play.eventPhase - + events.playing.eventPhase - + events.pause.eventPhase - ) === Event.NONE) { - lastCall = performance.now(); - this.dispatchEvent(events.play); - this.dispatchEvent(events.playing); - if (this.paused === true) { - setTimeout(() => this.dispatchEvent(events.pause), 100); - } - } - return Promise.resolve(); - } - - function applyPrefs() { - if (monitoringUserInput && !prefs.disableAutoplay) { - userInputMonitor.uninit(); - monitoringUserInput = false; - } else if (!monitoringUserInput && prefs.disableAutoplay) { - userInputMonitor.init(); - monitoringUserInput = true; - } - if (preventingPreload && (!prefs.disableAutoplay || !prefs.disablePreload)) { - window.removeEventListener('loadstart', onMediaLoadStart, true); - preventingPreload = false; - } else if (!preventingPreload && prefs.disableAutoplay && prefs.disablePreload) { - window.addEventListener('loadstart', onMediaLoadStart, true); - preventingPreload = true; - } - } - - function init() { - if (prefs.disableAutoplay && prefs.disablePreload) { - document.querySelectorAll('audio, video').forEach(disableAutoplay); - } - Object.defineProperty(HTMLMediaElement.prototype, 'play', { - configurable: true, - enumerable: true, - value: mediaPrototypePlay, - }); - applyPrefs(); - } - - window.DH5A.on('prefs-changed', (prefName, value) => { - prefs[prefName] = value; - applyPrefs(); - }); - - init(); -}()); diff --git a/idDevNet_files/playback.js b/idDevNet_files/playback.js deleted file mode 100644 index 216fe9f..0000000 --- a/idDevNet_files/playback.js +++ /dev/null @@ -1,3 +0,0 @@ -// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-3.0 -!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}([function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){var t="function"==typeof Map?new Map:void 0;return(s=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return a(e,arguments,u(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),l(o,e)})(e)}function a(e,t,n){return(a=c()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&l(i,n.prototype),i}).apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}if(n.d(t,"a",(function(){return f})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return v})),"undefiend"!=typeof window.XMLHttpRequest){var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(o,e);var t,n=(t=o,function(){var e,n=u(t);if(c()){var o=u(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return r(this,e)});function o(){return i(this,o),n.apply(this,arguments)}return o}(s(XMLHttpRequest));Object.defineProperty(h.prototype,"responseURL",Object.getOwnPropertyDescriptor(XMLHttpRequest.prototype,"responseURL"))}function f(e,t,n,o,i){var r;if((r=window.XMLHttpRequest?new h:new ActiveXObject("Microsoft.XMLHTTP")).onreadystatechange=function(){4==this.readyState&&n(r)},r.open(e,t,!0),o)for(var s in o)o.hasOwnProperty(s)&&r.setRequestHeader(s,o[s]);r.withCredentials=!0,r.send(i)}function p(e){return void 0!==e&&e&&e.constructor===Array}function d(e){return document.cookie.search(e)>=0}function m(e,t){var n=window["HTML".concat(e,"Element")];if(void 0!==n){var o=Object.getOwnPropertyDescriptor(n.prototype,t);void 0!==o&&Object.defineProperty(n.prototype,"_wm_".concat(t),o)}}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"src",n="_wm_".concat(t);return n in e.__proto__?e[n]:e[t]}m("Image","src"),m("Media","src"),m("Embed","src"),m("IFrame","src"),m("Script","src"),m("Link","href")},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return c}));var o=["January","February","March","April","May","June","July","August","September","October","November","December"],i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],r={Y:function(e){return e.getUTCFullYear()},m:function(e){return e.getUTCMonth()+1},b:function(e){return i[e.getUTCMonth()]},B:function(e){return o[e.getUTCMonth()]},d:function(e){return e.getUTCDate()},H:function(e){return("0"+e.getUTCHours()).slice(-2)},M:function(e){return("0"+e.getUTCMinutes()).slice(-2)},S:function(e){return("0"+e.getUTCSeconds()).slice(-2)},"%":function(){return"%"}};function s(e){var t=function(e){return"number"==typeof e&&(e=e.toString()),[e.slice(-14,-10),e.slice(-10,-8),e.slice(-8,-6),e.slice(-6,-4),e.slice(-4,-2),e.slice(-2)]}(e);return new Date(Date.UTC(t[0],t[1]-1,t[2],t[3],t[4],t[5]))}function a(e){return i[e]}function c(e,t){return t.replace(/%./g,(function(t){var n=r[t[1]];return n?n(s(e)):t}))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a}));var o=n(0);function i(e,t){for(var n=0;n=400?i.failure&&i.failure(e):i.success&&i.success(e)}),{"Content-Type":"application/json"},r.stringify({url:e,snapshot:t,tags:n||[]})),!1}var a=function(){function e(t,n,i){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=t,this.url=n,this.timestamp=i,t.onclick=this.save.bind(this),document.addEventListener("DOMContentLoaded",(function(){Object(o.c)("logged-in-user")&&Object(o.c)("logged-in-sig")?r.userIsLoggedIn():r.userIsNotLoggedIn()}))}var t,n,r;return t=e,(n=[{key:"save",value:function(e){this.start(),s(this.url,this.timestamp,[],{failure:this.failure.bind(this),success:this.success.bind(this)})}},{key:"start",value:function(){this.hide(["wm-save-snapshot-fail","wm-save-snapshot-open","wm-save-snapshot-success"]),this.show(["wm-save-snapshot-in-progress"])}},{key:"failure",value:function(e){401==e.status?this.userNotLoggedIn(e):(this.hide(["wm-save-snapshot-in-progress","wm-save-snapshot-success"]),this.show(["wm-save-snapshot-fail","wm-save-snapshot-open"]),console.log("You have got an error."),console.log("If you think something wrong here please send it to support."),console.log('Response: "'+e.responseText+'"'),console.log('status: "'+e.status+'"'))}},{key:"success",value:function(e){this.hide(["wm-save-snapshot-fail","wm-save-snapshot-in-progress"]),this.show(["wm-save-snapshot-open","wm-save-snapshot-success"])}},{key:"userIsLoggedIn",value:function(){this.show("wm-save-snapshot-open"),this.hide("wm-sign-in")}},{key:"userIsNotLoggedIn",value:function(){this.hide(["wm-save-snapshot-open","wm-save-snapshot-in-progress"]),this.show("wm-sign-in")}},{key:"show",value:function(e){this.setDisplayStyle(e,"inline-block")}},{key:"hide",value:function(e){this.setDisplayStyle(e,"none")}},{key:"setDisplayStyle",value:function(e,t){var n=this;(Object(o.d)(e)?e:[e]).forEach((function(e){var o=n.el.getRootNode().getElementById(e);o&&(o.style.display=t)}))}}])&&i(t.prototype,n),r&&i(t,r),e}()},,,,,,,function(e,t,n){"use strict";var o;n.r(t);var i,r={createElementNS:document.createElementNS};var s=!1;function a(e){!function(e,t,n){if(n){var o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3);var i="; expires="+o.toGMTString()}else i="";document.cookie=e+"="+t+i+"; path=/"}(e,"",-1)}var c=n(0),l=n(1),u=window.Date;function h(e,t){return(e=e.toString()).length>=t?e:"00000000".substring(0,t-e.length)+e}function f(e){for(var t=0,n=0;n3}(e)){var o=[];for(n=0;n=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i,r=!0,s=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return r=e.done,e},e:function(e){s=!0,i=e},f:function(){try{r||null==o.return||o.return()}finally{if(s)throw i}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:"src",r=window.location.origin,s=b(window,e),l=p(s);try{for(l.s();!(o=l.n()).done;){var u=o.value;if(!n||n(u)){var h=Object(c.b)(u,i);h&&!h.startsWith(t)&&h.startsWith(r)&&(h.startsWith("data:")||a.push(h))}}}catch(e){l.e(e)}finally{l.f()}}u("img"),u("frame"),u("iframe",(function(e){return"playback"!==e.id})),u("script"),u("link",(function(e){return"stylesheet"===e.rel}),"href");var h=a.filter((function(e,t,n){return n.indexOf(e)===t}));h.length>0?(s=0,h.map((function(e){e.match("^https?://")&&(s++,Object(c.a)("HEAD",e,(function(e){if(200==e.status){var t=e.getResponseHeader("Memento-Datetime");if(null==t)console.log("%s: no Memento-Datetime",u);else{var n=document.createElement("span"),a=function(e,t){var n=new Date(e).getTime()-t,o="";n<0?(o+="-",n=Math.abs(n)):o+="+";var i=!1;if(n<1e3)return{delta:n,text:"",highlight:i};var r=n,s=Math.floor(n/1e3/60/60/24/30/12);n-=1e3*s*60*60*24*30*12;var a=Math.floor(n/1e3/60/60/24/30);n-=1e3*a*60*60*24*30;var c=Math.floor(n/1e3/60/60/24);n-=1e3*c*60*60*24;var l=Math.floor(n/1e3/60/60);n-=1e3*l*60*60;var u=Math.floor(n/1e3/60);n-=1e3*u*60;var h=Math.floor(n/1e3),f=[];s>1?(f.push(s+" years"),i=!0):1==s&&(f.push(s+" year"),i=!0);a>1?(f.push(a+" months"),i=!0):1==a&&(f.push(a+" month"),i=!0);c>1?f.push(c+" days"):1==c&&f.push(c+" day");l>1?f.push(l+" hours"):1==l&&f.push(l+" hour");u>1?f.push(u+" minutes"):1==u&&f.push(u+" minute");h>1?f.push(h+" seconds"):1==h&&f.push(h+" second");f.length>2&&(f=f.slice(0,2));return{delta:r,text:o+f.join(" "),highlight:i}}(t,r),c=a.highlight?"color:red;":"";n.innerHTML=" "+a.text,n.title=t,n.setAttribute("style",c);var l=e.getResponseHeader("Content-Type"),u=e.responseURL.replace(window.location.origin,""),h=document.createElement("a");h.innerHTML=u.split("/").splice(3).join("/"),h.href=u,h.title=l,h.onmouseover=y,h.onmouseout=w;var f=document.createElement("div");f.setAttribute("data-delta",a.delta),f.appendChild(h),f.append(n),o.appendChild(f);var p=Array.prototype.slice.call(o.childNodes,0);p.sort((function(e,t){return t.getAttribute("data-delta")-e.getAttribute("data-delta")})),o.innerHTML="";for(var d=0,m=p.length;d0)for(var n=0;n0)for(var n=0;n0?this.sc.scrollTop=i+this.sc.suggestionHeight+o-this.sc.maxHeight:i<0&&(this.sc.scrollTop=i+o)}}},{key:"blurHandler",value:function(){var e=this;try{var t=this.root.querySelector(".wb-autocomplete-suggestions:hover")}catch(e){t=null}t?this.input!==document.activeElement&&setTimeout((function(){return e.focus()}),20):(this.last_val=this.input.value,this.sc.style.display="none",setTimeout((function(){return e.sc.style.display="none"}),350))}},{key:"suggest",value:function(e){var t=this.input.value;if(this.cache[t]=e,e.length&&t.length>=this.minChars){for(var n="",o=0;o40)&&13!=n&&27!=n){var o=this.input.value;if(o.length>=this.minChars){if(o!=this.last_val){if(this.last_val=o,clearTimeout(this.timer),this.cache){if(o in this.cache)return void this.suggest(this.cache[o]);for(var i=1;i'+e.replace(n,"$1")+""}},{key:"onSelect",value:function(e,t,n){}}]),e}(),j=function(){function e(t,n){M(this,e);var o=t.getRootNode();if(o.querySelector){var i="object"==S(t)?[t]:o.querySelectorAll(t);this.elems=i.map((function(e){return new E(e,n)}))}}return T(e,[{key:"destroy",value:function(){for(;this.elems.length>0;)this.elems.pop().unload()}}]),e}(),R=n(2),A=window.JSON,N=window.open,I=window.Date,U=document,D=document,P=function(e){return D.getElementById(e)};var q,B="/static/";function F(e){H.classList.contains("wm-closed")?(e&&O.classList.add("notice-only"),H.classList.replace("wm-closed","wm-open"),O.style.display="block",m(q,B,P)):(H.classList.replace("wm-open","wm-closed"),O.style.display="none",O.classList.remove("notice-only"))}function W(e,t){var n=P(e);n&&(n.style.visibility=t?"visible":"hidden")}function X(e,t){Object(c.d)(e)||(e=[e]);for(var n=0;n0&&r<60,r)}))}window.__wm={init:function(e){!function(){var e=document.cookie.split(";");if(e.length>40)for(var t=0;t1?t-1:0),o=1;o0;)k.appendChild(C.children[0]);if(d)for(var x=0;x'+((""+n).replace(/\B(?=(\d{3})+$)/g,",")+" ")+(n>1?"captures":"capture")+"",f=l.a(i,"%d %b %Y");s!=i&&(f+=" - "+l.a(s,"%d %b %Y")),h+='
'+f+"
",t.innerHTML=h}(o),function(e,t,n,o,i,r,s){var a=o.getContext("2d");if(a){a.fillStyle="#FFF";var c=(new u).getUTCFullYear(),l=t/(c-i+1),h=f(e.years),p=h[0],d=n/h[1];if(r>=i){var m=T(r);a.fillStyle="#FFFFA5",a.fillRect(m,0,l,n)}for(var v=i;v<=c;v++){m=T(v);a.beginPath(),a.moveTo(m,0),a.lineTo(m,n),a.lineWidth=1,a.strokeStyle="#CCC",a.stroke()}s=parseInt(s)-1;for(var g=(l-1)/12,y=0;y0){var _=Math.ceil(M*d);a.fillStyle=v==r&&S==s?"#EC008C":"#000",a.fillRect(Math.round(b),Math.ceil(n-_),Math.ceil(g),Math.round(_))}b+=g}}}function T(e){return Math.ceil((e-i)*l)+.5}}(o,e,t,Q,a,b,S)}}))}else{var Z=new Image;Z.src="/__wb/sparkline?url="+encodeURIComponent(r)+"&width="+e+"&height="+t+"&selected_year="+b+"&selected_month="+S+(i&&"&collection="+i||""),Z.alt="sparkline",Z.width=e,Z.height=t,Z.id="sparklineImgId",Z.border="0",K.parentNode.replaceChild(Z,K)}function ee(e){for(var t=[],n=e.length,o=0;o