security wink emoji

master
nannal 3 years ago
parent 63c769e148
commit 5c28d896b0

@ -1,2 +1,2 @@
var app=function(){"use strict";function t(){}function n(t){return t()}function e(){return Object.create(null)}function o(t){t.forEach(n)}function r(t){return"function"==typeof t}function c(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function i(t,n){t.appendChild(n)}function s(t,n,e){t.insertBefore(n,e||null)}function u(t){t.parentNode.removeChild(t)}function a(t){return document.createElement(t)}function l(t){return document.createTextNode(t)}function f(){return l(" ")}let d;function h(t){d=t}const p=[],m=[],$=[],g=[],b=Promise.resolve();let y=!1;function _(t){$.push(t)}let x=!1;const w=new Set;function k(){if(!x){x=!0;do{for(let t=0;t<p.length;t+=1){const n=p[t];h(n),v(n.$$)}for(h(null),p.length=0;m.length;)m.pop()();for(let t=0;t<$.length;t+=1){const n=$[t];w.has(n)||(w.add(n),n())}$.length=0}while(p.length);for(;g.length;)g.pop()();y=!1,x=!1,w.clear()}}function v(t){if(null!==t.fragment){t.update(),o(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(_)}}const E=new Set;function j(t,n){t&&t.i&&(E.delete(t),t.i(n))}function A(t,e,c,i){const{fragment:s,on_mount:u,on_destroy:a,after_update:l}=t.$$;s&&s.m(e,c),i||_((()=>{const e=u.map(n).filter(r);a?a.push(...e):o(e),t.$$.on_mount=[]})),l.forEach(_)}function C(t,n){const e=t.$$;null!==e.fragment&&(o(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function N(t,n){-1===t.$$.dirty[0]&&(p.push(t),y||(y=!0,b.then(k)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function P(n,r,c,i,s,a,l=[-1]){const f=d;h(n);const p=n.$$={fragment:null,ctx:null,props:a,update:t,not_equal:s,bound:e(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(f?f.$$.context:r.context||[]),callbacks:e(),dirty:l,skip_bound:!1};let m=!1;if(p.ctx=c?c(n,r.props||{},((t,e,...o)=>{const r=o.length?o[0]:e;return p.ctx&&s(p.ctx[t],p.ctx[t]=r)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](r),m&&N(n,t)),e})):[],p.update(),m=!0,o(p.before_update),p.fragment=!!i&&i(p.ctx),r.target){if(r.hydrate){const t=function(t){return Array.from(t.childNodes)}(r.target);p.fragment&&p.fragment.l(t),t.forEach(u)}else p.fragment&&p.fragment.c();r.intro&&j(n.$$.fragment),A(n,r.target,r.anchor,r.customElement),k()}h(f)}class O{$destroy(){C(this,1),this.$destroy=t}$on(t,n){const e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(n),()=>{const t=e.indexOf(n);-1!==t&&e.splice(t,1)}}$set(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function S(n){let e,o,r,c,d,h,p;return{c(){e=a("h1"),o=l("It's "),r=l(n[0]),c=l(" Weather"),d=f(),h=a("br"),p=l("\n\nNannal 2021")},m(t,n){s(t,e,n),i(e,o),i(e,r),i(e,c),s(t,d,n),s(t,h,n),s(t,p,n)},p(t,[n]){1&n&&function(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}(r,t[0])},i:t,o:t,d(t){t&&u(e),t&&u(d),t&&u(h),t&&u(p)}}}function F(t,n,e){let o,r,c,i,s;return navigator.geolocation?navigator.geolocation.getCurrentPosition((t=>{console.log(t.coords),o=t.coords.latitude,r=t.coords.longitude,fetch("http://www.7timer.info/bin/civil.php?lon="+r+"&lat="+o+"&unit=metric&output=json&tzshift=0").then((t=>t.json())).then((t=>{c=t.dataseries[0].temp2m,t.dataseries[0].weather,i=t.dataseries[0].wind10m.speed,e(0,s=c<17||i>7?"Pants":"Shorts")}))}),(t=>{e(0,s='"Fuck it, this asshole didn\'t allow me to check" '),console.log(t)})):(alert("Geolocation is not supported in this browser."),s='"Fuck it, this asshole didn\'t allow me to check" '),o="",r="",c="",i="",e(0,s="???"),[s]}class T extends O{constructor(t){super(),P(this,t,F,S,c,{})}}function q(n){let e,o,r,c,l;return c=new T({}),{c(){var t,n,i,s;e=a("main"),o=a("title"),o.textContent="Pantshort",r=f(),(t=c.$$.fragment)&&t.c(),n=e,i="class",null==(s="svelte-ri70vu")?n.removeAttribute(i):n.getAttribute(i)!==s&&n.setAttribute(i,s)},m(t,n){s(t,e,n),i(e,o),i(e,r),A(c,e,null),l=!0},p:t,i(t){l||(j(c.$$.fragment,t),l=!0)},o(t){!function(t,n,e,o){if(t&&t.o){if(E.has(t))return;E.add(t),(void 0).c.push((()=>{E.delete(t),o&&(e&&t.d(1),o())})),t.o(n)}}(c.$$.fragment,t),l=!1},d(t){t&&u(e),C(c)}}}return new class extends O{constructor(t){super(),P(this,t,null,q,c,{})}}({target:document.body,props:{name:"world"}})}();
var app=function(){"use strict";function t(){}function n(t){return t()}function e(){return Object.create(null)}function o(t){t.forEach(n)}function r(t){return"function"==typeof t}function c(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function i(t,n){t.appendChild(n)}function s(t,n,e){t.insertBefore(n,e||null)}function u(t){t.parentNode.removeChild(t)}function a(t){return document.createElement(t)}function l(t){return document.createTextNode(t)}function f(){return l(" ")}let d;function h(t){d=t}const p=[],m=[],$=[],g=[],b=Promise.resolve();let y=!1;function _(t){$.push(t)}let x=!1;const w=new Set;function k(){if(!x){x=!0;do{for(let t=0;t<p.length;t+=1){const n=p[t];h(n),v(n.$$)}for(h(null),p.length=0;m.length;)m.pop()();for(let t=0;t<$.length;t+=1){const n=$[t];w.has(n)||(w.add(n),n())}$.length=0}while(p.length);for(;g.length;)g.pop()();y=!1,x=!1,w.clear()}}function v(t){if(null!==t.fragment){t.update(),o(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(_)}}const E=new Set;function j(t,n){t&&t.i&&(E.delete(t),t.i(n))}function A(t,e,c,i){const{fragment:s,on_mount:u,on_destroy:a,after_update:l}=t.$$;s&&s.m(e,c),i||_((()=>{const e=u.map(n).filter(r);a?a.push(...e):o(e),t.$$.on_mount=[]})),l.forEach(_)}function C(t,n){const e=t.$$;null!==e.fragment&&(o(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function N(t,n){-1===t.$$.dirty[0]&&(p.push(t),y||(y=!0,b.then(k)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function P(n,r,c,i,s,a,l=[-1]){const f=d;h(n);const p=n.$$={fragment:null,ctx:null,props:a,update:t,not_equal:s,bound:e(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(f?f.$$.context:r.context||[]),callbacks:e(),dirty:l,skip_bound:!1};let m=!1;if(p.ctx=c?c(n,r.props||{},((t,e,...o)=>{const r=o.length?o[0]:e;return p.ctx&&s(p.ctx[t],p.ctx[t]=r)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](r),m&&N(n,t)),e})):[],p.update(),m=!0,o(p.before_update),p.fragment=!!i&&i(p.ctx),r.target){if(r.hydrate){const t=function(t){return Array.from(t.childNodes)}(r.target);p.fragment&&p.fragment.l(t),t.forEach(u)}else p.fragment&&p.fragment.c();r.intro&&j(n.$$.fragment),A(n,r.target,r.anchor,r.customElement),k()}h(f)}class O{$destroy(){C(this,1),this.$destroy=t}$on(t,n){const e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(n),()=>{const t=e.indexOf(n);-1!==t&&e.splice(t,1)}}$set(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function S(n){let e,o,r,c,d,h,p;return{c(){e=a("h1"),o=l("It's "),r=l(n[0]),c=l(" Weather"),d=f(),h=a("br"),p=l("\n\nNannal 2021")},m(t,n){s(t,e,n),i(e,o),i(e,r),i(e,c),s(t,d,n),s(t,h,n),s(t,p,n)},p(t,[n]){1&n&&function(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}(r,t[0])},i:t,o:t,d(t){t&&u(e),t&&u(d),t&&u(h),t&&u(p)}}}function F(t,n,e){let o,r,c,i,s;return navigator.geolocation?navigator.geolocation.getCurrentPosition((t=>{console.log(t.coords),o=t.coords.latitude,r=t.coords.longitude,fetch("https://www.7timer.info/bin/civil.php?lon="+r+"&lat="+o+"&unit=metric&output=json&tzshift=0").then((t=>t.json())).then((t=>{c=t.dataseries[0].temp2m,t.dataseries[0].weather,i=t.dataseries[0].wind10m.speed,e(0,s=c<17||i>7?"Pants":"Shorts")}))}),(t=>{e(0,s='"Fuck it, this asshole didn\'t allow me to check" '),console.log(t)})):(alert("Geolocation is not supported in this browser."),s='"Fuck it, this asshole didn\'t allow me to check" '),o="",r="",c="",i="",e(0,s="???"),[s]}class T extends O{constructor(t){super(),P(this,t,F,S,c,{})}}function q(n){let e,o,r,c,l;return c=new T({}),{c(){var t,n,i,s;e=a("main"),o=a("title"),o.textContent="Pantshort",r=f(),(t=c.$$.fragment)&&t.c(),n=e,i="class",null==(s="svelte-ri70vu")?n.removeAttribute(i):n.getAttribute(i)!==s&&n.setAttribute(i,s)},m(t,n){s(t,e,n),i(e,o),i(e,r),A(c,e,null),l=!0},p:t,i(t){l||(j(c.$$.fragment,t),l=!0)},o(t){!function(t,n,e,o){if(t&&t.o){if(E.has(t))return;E.add(t),(void 0).c.push((()=>{E.delete(t),o&&(e&&t.d(1),o())})),t.o(n)}}(c.$$.fragment,t),l=!1},d(t){t&&u(e),C(c)}}}return new class extends O{constructor(t){super(),P(this,t,null,q,c,{})}}({target:document.body,props:{name:"world"}})}();
//# sourceMappingURL=bundle.js.map

File diff suppressed because one or more lines are too long

@ -16,7 +16,7 @@ if (!navigator.geolocation) {
console.log(position.coords)
latitude = position.coords.latitude
longitude = position.coords.longitude
fetch("http://www.7timer.info/bin/civil.php?lon="+longitude+"&lat="+latitude+"&unit=metric&output=json&tzshift=0").then(
fetch("https://www.7timer.info/bin/civil.php?lon="+longitude+"&lat="+latitude+"&unit=metric&output=json&tzshift=0").then(
response => response.json()
).then(
data => {

Loading…
Cancel
Save