Compare commits

...

13 Commits

  1. 2
      layouts/_default/baseof.html
  2. 47
      layouts/live/list.html
  3. 5
      layouts/partials/footer.html
  4. 18
      layouts/partials/head.html
  5. 4
      layouts/partials/header.html
  6. 2
      layouts/sessions/list.html
  7. 4
      layouts/sessions/single.html
  8. 13783
      package-lock.json
  9. 25
      package.json
  10. 2
      rollup.config.prod.js
  11. 12
      src/style/_root.scss
  12. 6
      src/style/partials/_base.scss
  13. 4
      src/style/partials/_header.scss
  14. 1
      src/style/partials/_jumbo.scss
  15. 43
      src/style/partials/_partners.scss
  16. 7
      static/icons.svg
  17. 16
      static/live.css
  18. 2920
      static/theme-oyd.css
  19. 1979
      static/theme.css
  20. 179
      static/theme.js
  21. 9784
      yarn.lock

@ -20,7 +20,7 @@
{{ partial "footer.html" . }}
{{ end }}
<script src="/theme.js?v=13" async></script>
<script src="/2021/theme.js?v=16" async></script>
{{ block "scripts" . }}
<!-- No extra scripts -->
{{ end }}

@ -0,0 +1,47 @@
{{ define "main" }}
{{ .Content }}
<div class="jumbo">
<div class="jumbo-cover" style="background-image: url('https://ozgurkon.org/2021/images/flat-mountains.svg')"></div>
<div class="container">
<div class="row"><div class="col"><h1 class="hashtag">#ÖzgürKon2021 live!</h1></div></div>
<div class="row">
<div class="col-8">
<section class="live-section">
<div
id="room"
class="">
<video-js
id="player"
data-setup="{}"
>
<source src="https://rtmp.ozgurkon.org/live/test.m3u8">
</video-js>
</div>
</section>
</div>
<div class="col-4">
<iframe src="https://kiwiirc.com/client/chat.freenode.net/?&theme=cli#ozgurkon" class="live-chat" ></iframe>
</div>
</div>
</div>
</div>
{{end}}
{{ define "scripts"}}
<script type="text/javascript" src="https://vjs.zencdn.net/7.8.1/video.js"></script>
<script type="text/javascript" src="https://unpkg.com/@videojs/http-streaming@1.13.3/dist/videojs-http-streaming.min.js"></script>
<script type="text/javascript">
const players = {
room : videojs('player', {
controls: true,
aspectRatio: '16:9'
}),
}
</script>
{{ end }}

@ -12,11 +12,6 @@
{{ end }}
</ul>
</div>
<div class="blog">
<header>
{{ i18n "footer_follow_blog" }} <a href="{{ "blog/" | relLangURL }}">{{ i18n "footer_follow_blog_blog" }}</a>
</header>
</div>
<div class="follow">
<header>{{ i18n "footer_follow_us" }}</header>
<ul class="social-list">

@ -45,34 +45,40 @@
<meta property="og:type" content="website" />
<meta property="og:url" content="https://ozgurkon.org/2021" />
<meta property="og:description" content="{{ $.Site.Params.description }}" />
<meta property="og:image" content="/images/logos/ozgurkon_only_logo.svg" />
<meta property="og:image" content="https://ozgurkon.org/2021/images/logos/ozgurkon_only_logo.png" />
<meta property="og:site_name" content="ÖzgürKon 2021" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@OzgurKonorg" />
<meta name="twitter:title" content="ÖzgürKon 2021">
<meta name="twitter:description" content="{{ $.Site.Params.description }}">
<meta name="twitter:creator" content="@OzgurKonorg" />
<meta name="twitter:image" content="https://ozgurkon.org/tn.png">
<meta name="twitter:image" content="https://ozgurkon.org/2021/images/logos/ozgurkon_only_logo.png">
{{ else }}
<meta property="og:title" content="{{ .Page.Title }} - {{ .Site.Title }}" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://ozgurkon.org/2021" />
<meta property="og:description" content="{{ .Page.Summary }}" />
<meta property="og:image" content="/images/logos/ozgurkon_only_logo.svg" />
<meta property="og:image" content="https://ozgurkon.org/2021/images/logos/ozgurkon_only_logo.png" />
<meta property="og:site_name" content="ÖzgürKon 2021" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@OzgurKonorg" />
<meta name="twitter:title" content="{{ .Page.Title }} - ÖzgürKon 2021">
<meta name="twitter:title" content="{{ .Page.Title }} - {{ .Site.Title }}">
<meta name="twitter:description" content="{{ .Page.Summary }}">
<meta name="twitter:creator" content="@OzgurKonorg" />
<meta name="twitter:image" content="https://ozgurkon.org/images/logos/ozgurkon_only_logo.svg">
<meta name="twitter:image" content="https://ozgurkon.org/2021/images/logos/ozgurkon_only_logo.png">
{{ end }}
<link href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}"/>
<link href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}"/>
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700" rel="stylesheet">
<link rel="stylesheet" href="/theme-oyd.css" media="all">
<link rel="stylesheet" href="/2021/theme.css" media="all">
<link href="https://vjs.zencdn.net/7.11.4/video-js.css" rel="stylesheet" />
<link href="{{ `live.css` | absURL }}" rel="stylesheet" />
{{ if eq .URL "/2021/live/" }}
<link rel="stylesheet" href="{{ `bootstrap-grid.min.css` | absURL }}">
{{ end }}
{{ block "headextra" . }}
<!-- No extra headextra -->

@ -22,11 +22,11 @@
{{ if (hasPrefix .URL "http") }}
<a class="external" rel="noreferrer" target="_blank" href="{{ .URL }}" title="{{ .Name }}">{{ .Name }}</a>
{{ else if (isset .Page.Params "icon") }}
<a href="{{ .URL | relLangURL }}" class="link-icon" title="{{ .Name }}">
<a href="{{ .URL | absURL }}" class="link-icon" title="{{ .Name }}">
{{ partial "icon.html" .Page.Params.icon }}
</a>
{{ else }}
<a href="{{ .URL | relLangURL }}">{{ .Name }}</a>
<a href="{{ .URL | absURL }}">{{ .Name }}</a>
{{ end }}
</li>
{{ end }}

@ -5,7 +5,7 @@
<section>
<ul class="talks">
{{ $sessions := where .Site.AllPages ".Section" "sessions" }}
{{ $types := (slice "conference" "quickie" "keynote") }}
{{ $types := (slice "talk" "short-talk" "opening") }}
{{ range sort $sessions ".Title" }}
{{ if intersect (slice .Params.format) $types }}
<li class="talk tag-{{ anchorize (delimit (.Params.tags | default (slice)) "" ) }}">{{ partial "session.html" . }}</li>

@ -22,8 +22,8 @@
<ul class="speakers">
{{ range where .Site.RegularPages "Params.key" "in" .Params.speakers }}
<li>
<a class="visually-hidden" aria-hidden="true" href="/speakers/{{ .Params.key }}">{{ .Params.name }}</a>
<a class="speaker" href="/speakers/{{ .Params.key }}">
<a class="visually-hidden" aria-hidden="true" href="/2021/speakers/{{ .Params.key }}">{{ .Params.name }}</a>
<a class="speaker" href="/2021/speakers/{{ .Params.key }}">
<div class="speaker-img" style="background-image: url({{ .Params.photoURL }});"></div>
<strong class="speaker-name">{{ .Params.name }}</strong>
<span class="speaker-country">{{ .Params.city }}</span>

13783
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -16,20 +16,23 @@
"build": "run-p build:*"
},
"devDependencies": {
"@babel/core": "^7.5.4",
"@babel/polyfill": "^7.2.5",
"@babel/preset-env": "^7.5.4",
"@types/js-yaml": "^3.12.1",
"cssnano": "^4.1.8",
"node-sass": "^4.11.0",
"@babel/core": "^7.14.3",
"@babel/polyfill": "^7.12.1",
"@babel/preset-env": "^7.14.2",
"@types/js-yaml": "^4.0.1",
"cssnano": "^5.0.4",
"node-sass": "^6.0.0",
"npm-run-all": "^4.1.5",
"plop-logger": "^3.0.0",
"postcss-cli": "^6.1.3",
"plop-logger": "^3.1.7",
"postcss-cli": "^8.3.1",
"postcss-preset-env": "^6.7.0",
"rollup": "^1.19.4",
"rollup-plugin-babel": "^4.3.1",
"rollup": "^2.50.2",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-uglify": "^6.0.1",
"rollup-plugin-uglify": "^6.0.4",
"sass-mq": "^5.0.1"
},
"dependencies": {
"video.js": "^7.0.3"
}
}

@ -5,6 +5,6 @@ export default {
...defaultConfig,
plugins: [
...defaultConfig.plugins,
uglify({sourcemap: false})
// uglify({sourcemap: false})
]
};

@ -1,5 +1,5 @@
:root {
--primary: #593a9f;
--primary: #c03e24;
--primary-txt: #fff;
--accent: grey;
@ -20,8 +20,8 @@
--color-hero: ghostwhite;
--color-platium: #73737a;
--color-gold: #b7935b;
--color-main-sponsors: #73737a;
--color-sponsors: #b7935b;
--color-error: firebrick;
--space-1: .125rem;
@ -74,8 +74,10 @@
/* Partners */
--partner-support-height: 60px;
--partner-platinum-height: calc(var(--partner-support-height) * 3);
--partner-gold-height: calc(var(--partner-support-height) * 2);
--partner-organisation-height: calc(var(--partner-support-height) * 2);
--partner-partner-height: calc(var(--partner-support-height)*1.5);
--partner-main-sponsors-height: calc(var(--partner-support-height) * 3);
--partner-sponsors-height: calc(var(--partner-support-height) * 2);
--animation: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

@ -55,6 +55,10 @@ a, a:visited {
content: '🇬🇧';
}
.language.turkish::before {
content: '🇹🇷';
}
.visually-hidden { /* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility */
position: absolute !important;
height: 1px;
@ -66,4 +70,4 @@ a, a:visited {
body > main > section.container, body > header.container, body > footer.container {
padding: 4rem var(--container-margin);
}
}

@ -114,8 +114,8 @@ body > header {
color: initial;
}
&.lang-fr::before {
content: '🇫🇷';
&.lang-tr::before {
content: '🇹🇷';
}
&.lang-gb::before {

@ -35,7 +35,6 @@
}
#jumbo-overlay {
background-color: var(--primary);
transition: opacity var(--jumbo-overlay-transition, 0.4s);
position: absolute;
top: 0;

@ -38,13 +38,23 @@
}
}
.partners-group.partner-platinium ul li {
height: var(--partner-platinum-height);
.partners-group.partner-organisation ul li {
height: var(--partner-organisation-height);
flex-basis: 320px;
}
.partners-group.partner-gold ul li, .partners-group.partner-startup ul li {
height: var(--partner-gold-height);
.partners-group.partner-partners ul li {
height: var(--partner-partner-height);
flex-basis: 320px;
}
.partners-group.partner-main-sponsors ul li {
height: var(--partner-main-sponsors-height);
flex-basis: 320px;
}
.partners-group.partner-sponsors ul li, .partners-group.partner-startup ul li {
height: var(--partner-sponsors-height);
flex-basis: 200px;
}
@ -82,10 +92,27 @@
}
}
.partners-group.partner-organisation .fancy {
font-size: 1.8em;
color: var(--color-organisation);
span:before, span:after {
border-bottom: 3px solid currentColor;
}
}
.partners-group.partner-partners .fancy {
font-size: 1.6em;
color: var(--color-partners);
span:before, span:after {
border-bottom: 2px solid currentColor;
}
}
.partners-group.partner-platinium .fancy {
.partners-group.partner-main-sponsors .fancy {
font-size: 1.5em;
color: var(--color-platium);
color: var(--color-main-sponsors);
span:before, span:after {
border-bottom: 1px solid currentColor;
@ -93,9 +120,9 @@
}
}
.partners-group.partner-gold .fancy {
.partners-group.partner-sponsors .fancy {
font-size: 1.33em;
color: var(--color-gold);
color: var(--color-sponsors);
span:before, span:after {
top: 20%;

@ -131,4 +131,11 @@
<path fill="rgb(205,32,31)"
d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"></path>
</symbol>
<symbol id="mastodon" viewBox="0 0 576 512">
<path id="path" style="opacity:1;vector-effect:none;fill:#2c8ed7;fill-opacity:1;" d=" M 502 18C 623 19 740 32 808 64C 808 64 942 124 942 330C 942 330 944 482 924 587C 911 654 807 727 688 741C 626 749 565 756 500 753C 394 748 310 727 310 727C 310 738 310 747 312 757C 326 862 416 868 501 871C 588 874 665 850 665 850C 665 850 668 928 668 928C 668 928 608 960 500 966C 441 969 367 965 281 942C 95 893 63 694 58 493C 57 433 58 377 58 330C 58 124 193 64 193 64C 261 32 377 19 499 18C 499 18 502 18 502 18M 256 224C 230 254 217 295 217 346C 217 346 217 595 217 595C 217 595 315 595 315 595C 315 595 315 353 315 353C 315 302 337 276 380 276C 427 276 451 307 451 368C 451 368 451 500 451 500C 451 500 549 500 549 500C 549 500 549 368 549 368C 549 307 573 276 620 276C 663 276 685 302 685 353C 685 353 685 595 685 595C 685 595 783 595 783 595C 783 595 783 346 783 346C 783 295 770 254 744 224C 717 194 682 179 639 179C 588 179 550 199 525 237C 525 237 500 279 500 279C 500 279 475 237 475 237C 450 199 412 179 361 179C 318 179 283 194 256 224C 256 224 256 224 256 224" transform=""></path>
</symbol>
<symbol id="live" viewBox="0 0 512 512">
<path fill="currentColor" d="m479.894531 187.523438-90.179687 68.527343v-52.601562c0-11.046875-8.953125-20-20-20h-349.714844c-11.046875 0-20 8.953125-20 20v288.546875c0 11.042968 8.953125 19.996094 20 19.996094h349.714844c11.046875 0 20-8.953126 20-19.996094v-52.605469l90.179687 68.527344c13.046875 9.914062 32.101563.671875 32.101563-15.921875v-288.546875c0-16.503907-18.949219-25.921875-32.101563-15.925781zm-130.179687 284.472656h-309.714844v-248.546875h309.714844zm122.28125-20.320313-82.28125-62.523437v-82.859375l82.28125-62.527344zm-384.03125-372.4375c41.652344-50.355469 102.898437-79.238281 168.03125-79.238281 65.132812 0 126.378906 28.882812 168.035156 79.238281 7.039062 8.511719 5.847656 21.121094-2.664062 28.160157-8.488282 7.019531-21.101563 5.871093-28.160157-2.664063-34.027343-41.140625-84.039062-64.734375-137.210937-64.734375-53.167969 0-103.179688 23.59375-137.207032 64.734375-7.039062 8.511719-19.648437 9.707031-28.160156 2.664063-8.511718-7.039063-9.703125-19.648438-2.664062-28.160157zm240.355468 32.214844c9.398438 5.800781 12.3125 18.125 6.511719 27.523437-5.792969 9.378907-18.109375 12.324219-27.527343 6.507813-15.402344-9.511719-33.144532-14.539063-51.308594-14.539063-18.160156 0-35.902344 5.027344-51.308594 14.539063-9.398438 5.804687-21.71875 2.890625-27.523438-6.507813-5.804687-9.398437-2.890624-21.722656 6.507813-27.523437 21.726563-13.417969 46.734375-20.507813 72.324219-20.507813 25.59375 0 50.601562 7.089844 72.324218 20.507813zm0 0"></path>
</symbol>
</svg>

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 21 KiB

@ -0,0 +1,16 @@
@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@600&display=swap');
.hashtag {
margin-left: auto !important;
margin-right: auto !important;
text-align: center !important;
font-family: 'Bitter', serif;
margin-bottom: 30px;
color: #c03e24;
}
.live-chat {
height: 100%;
width: 350px;
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -1 +1,178 @@
window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e){e=e||window;for(var n=0;n<this.length;n++)t.call(e,this[n],n,this)}),document.querySelectorAll("ul.shuffle").forEach(function(t){for(var e=t.children.length;0<=e;e--)t.appendChild(t.children[Math.random()*e|0])});var Konami$1=function(t){var n={addEvent:function(t,e,n,o){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent&&(t["e"+e+n]=n,t[e+n]=function(){t["e"+e+n](window.event,o)},t.attachEvent("on"+e,t[e+n]))},removeEvent:function(t,e,n){t.removeEventListener?t.removeEventListener(e,n):t.attachEvent&&t.detachEvent(e)},input:"",pattern:"38384040373937396665",keydownHandler:function(t,e){if(e&&(n=e),n.input+=t?t.keyCode:event.keyCode,n.input.length>n.pattern.length&&(n.input=n.input.substr(n.input.length-n.pattern.length)),n.input===n.pattern)return n.code(n._currentLink),n.input="",t.preventDefault(),!1},load:function(t){this._currentLink=t,this.addEvent(document,"keydown",this.keydownHandler,this),this.iphone.load(t)},unload:function(){this.removeEvent(document,"keydown",this.keydownHandler),this.iphone.unload()},code:function(t){window.location=t},iphone:{start_x:0,start_y:0,stop_x:0,stop_y:0,tap:!1,capture:!1,orig_keys:"",keys:["UP","UP","DOWN","DOWN","LEFT","RIGHT","LEFT","RIGHT","TAP","TAP"],input:[],code:function(t){n.code(t)},touchmoveHandler:function(t){if(1===t.touches.length&&!0===n.iphone.capture){var e=t.touches[0];n.iphone.stop_x=e.pageX,n.iphone.stop_y=e.pageY,n.iphone.tap=!1,n.iphone.capture=!1,n.iphone.check_direction()}},touchendHandler:function(){if(n.iphone.input.push(n.iphone.check_direction()),n.iphone.input.length>n.iphone.keys.length&&n.iphone.input.shift(),n.iphone.input.length===n.iphone.keys.length){for(var t=!0,e=0;e<n.iphone.keys.length;e++)n.iphone.input[e]!==n.iphone.keys[e]&&(t=!1);t&&n.iphone.code(n._currentLink)}},touchstartHandler:function(t){n.iphone.start_x=t.changedTouches[0].pageX,n.iphone.start_y=t.changedTouches[0].pageY,n.iphone.tap=!0,n.iphone.capture=!0},load:function(t){this.orig_keys=this.keys,n.addEvent(document,"touchmove",this.touchmoveHandler),n.addEvent(document,"touchend",this.touchendHandler,!1),n.addEvent(document,"touchstart",this.touchstartHandler)},unload:function(){n.removeEvent(document,"touchmove",this.touchmoveHandler),n.removeEvent(document,"touchend",this.touchendHandler),n.removeEvent(document,"touchstart",this.touchstartHandler)},check_direction:function(){return x_magnitude=Math.abs(this.start_x-this.stop_x),y_magnitude=Math.abs(this.start_y-this.stop_y),x=this.start_x-this.stop_x<0?"RIGHT":"LEFT",y=this.start_y-this.stop_y<0?"DOWN":"UP",result=x_magnitude>y_magnitude?x:y,result=!0===this.tap?"TAP":result,result}}};return"string"==typeof t&&n.load(t),"function"==typeof t&&(n.code=t,n.load()),n};"undefined"!=typeof module&&void 0!==module.exports?module.exports=Konami$1:"function"==typeof define&&define.amd?define([],function(){return Konami$1}):window.Konami=Konami$1,new Konami(function(){var t=document.querySelector(".jumbo");t&&(t.style.backgroundImage="url(/images/wtf/serious.jpg)")}),setTimeout(function(){var t=document.querySelector("#jumbo-overlay");t&&t.classList.add("show")},500);
// NodeList.forEach
if (window.NodeList && !NodeList.prototype.forEach) {
NodeList.prototype.forEach = function (callback, thisArg) {
thisArg = thisArg || window;
for (let i = 0; i < this.length; i++) {
callback.call(thisArg, this[i], i, this);
}
};
}
// Shuffle
document.querySelectorAll('ul.shuffle').forEach(listElt => {
for (let i = listElt.children.length; i >= 0; i--) {
listElt.appendChild(listElt.children[Math.random() * i | 0]);
}
});
// From https://github.com/snaptortoise/konami-js
var Konami$1 = function (callback) {
var konami = {
addEvent: function (obj, type, fn, ref_obj) {
if (obj.addEventListener) obj.addEventListener(type, fn, false);else if (obj.attachEvent) {
// IE
obj["e" + type + fn] = fn;
obj[type + fn] = function () {
obj["e" + type + fn](window.event, ref_obj);
};
obj.attachEvent("on" + type, obj[type + fn]);
}
},
removeEvent: function (obj, eventName, eventCallback) {
if (obj.removeEventListener) {
obj.removeEventListener(eventName, eventCallback);
} else if (obj.attachEvent) {
obj.detachEvent(eventName);
}
},
input: "",
pattern: "38384040373937396665",
keydownHandler: function (e, ref_obj) {
if (ref_obj) {
konami = ref_obj;
} // IE
konami.input += e ? e.keyCode : event.keyCode;
if (konami.input.length > konami.pattern.length) {
konami.input = konami.input.substr(konami.input.length - konami.pattern.length);
}
if (konami.input === konami.pattern) {
konami.code(konami._currentLink);
konami.input = '';
e.preventDefault();
return false;
}
},
load: function (link) {
this._currentLink = link;
this.addEvent(document, "keydown", this.keydownHandler, this);
this.iphone.load(link);
},
unload: function () {
this.removeEvent(document, 'keydown', this.keydownHandler);
this.iphone.unload();
},
code: function (link) {
window.location = link;
},
iphone: {
start_x: 0,
start_y: 0,
stop_x: 0,
stop_y: 0,
tap: false,
capture: false,
orig_keys: "",
keys: ["UP", "UP", "DOWN", "DOWN", "LEFT", "RIGHT", "LEFT", "RIGHT", "TAP", "TAP"],
input: [],
code: function (link) {
konami.code(link);
},
touchmoveHandler: function (e) {
if (e.touches.length === 1 && konami.iphone.capture === true) {
var touch = e.touches[0];
konami.iphone.stop_x = touch.pageX;
konami.iphone.stop_y = touch.pageY;
konami.iphone.tap = false;
konami.iphone.capture = false;
konami.iphone.check_direction();
}
},
touchendHandler: function () {
konami.iphone.input.push(konami.iphone.check_direction());
if (konami.iphone.input.length > konami.iphone.keys.length) konami.iphone.input.shift();
if (konami.iphone.input.length === konami.iphone.keys.length) {
var match = true;
for (var i = 0; i < konami.iphone.keys.length; i++) {
if (konami.iphone.input[i] !== konami.iphone.keys[i]) {
match = false;
}
}
if (match) {
konami.iphone.code(konami._currentLink);
}
}
},
touchstartHandler: function (e) {
konami.iphone.start_x = e.changedTouches[0].pageX;
konami.iphone.start_y = e.changedTouches[0].pageY;
konami.iphone.tap = true;
konami.iphone.capture = true;
},
load: function (link) {
this.orig_keys = this.keys;
konami.addEvent(document, "touchmove", this.touchmoveHandler);
konami.addEvent(document, "touchend", this.touchendHandler, false);
konami.addEvent(document, "touchstart", this.touchstartHandler);
},
unload: function () {
konami.removeEvent(document, 'touchmove', this.touchmoveHandler);
konami.removeEvent(document, 'touchend', this.touchendHandler);
konami.removeEvent(document, 'touchstart', this.touchstartHandler);
},
check_direction: function () {
x_magnitude = Math.abs(this.start_x - this.stop_x);
y_magnitude = Math.abs(this.start_y - this.stop_y);
x = this.start_x - this.stop_x < 0 ? "RIGHT" : "LEFT";
y = this.start_y - this.stop_y < 0 ? "DOWN" : "UP";
result = x_magnitude > y_magnitude ? x : y;
result = this.tap === true ? "TAP" : result;
return result;
}
}
};
typeof callback === "string" && konami.load(callback);
if (typeof callback === "function") {
konami.code = callback;
konami.load();
}
return konami;
};
if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
module.exports = Konami$1;
} else {
if (typeof define === 'function' && define.amd) {
define([], function () {
return Konami$1;
});
} else {
window.Konami = Konami$1;
}
}
new Konami(function () {
const elt = document.querySelector('.jumbo');
if (elt) {
elt.style.backgroundImage = 'url(/images/wtf/serious.jpg)';
}
});
setTimeout(function () {
const jumboOverlay = document.querySelector('#jumbo-overlay');
if (jumboOverlay) {
jumboOverlay.classList.add('show');
}
}, 500);

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save