Skip to content

Commit

Permalink
fixed google ads
Browse files Browse the repository at this point in the history
  • Loading branch information
CuriousCI committed Apr 9, 2023
1 parent 2380c6b commit 19b58fd
Show file tree
Hide file tree
Showing 14 changed files with 162 additions and 135 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,6 @@ video {
.contents{
display: contents;
}
.h-8{
height: 2rem;
}
.h-\[50vh\]{
height: 50vh;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { _ } from "./_layout-324900b4.js";
import { default as default2 } from "../components/pages/_layout.svelte-52592f04.js";
import { default as default2 } from "../components/pages/_layout.svelte-c7778512.js";
export {
default2 as component,
_ as universal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { default as default2 } from "../components/error.svelte-1ff30dc9.js";
import { default as default2 } from "../components/error.svelte-8a09f666.js";
export {
default2 as component
};
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { default as default2 } from "../components/pages/_page.svelte-855c2208.js";
import { default as default2 } from "../components/pages/_page.svelte-7619f75c.js";
export {
default2 as component
};
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,6 @@ function attr(node, attribute, value) {
else if (node.getAttribute(attribute) !== value)
node.setAttribute(attribute, value);
}
function set_custom_element_data(node, prop, value) {
if (prop in node) {
node[prop] = typeof node[prop] === "boolean" && value === "" ? true : value;
} else {
attr(node, prop, value);
}
}
function children(element2) {
return Array.from(element2.childNodes);
}
Expand Down Expand Up @@ -575,8 +568,7 @@ export {
append_hydration as H,
component_subscribe as I,
src_url_equal as J,
set_custom_element_data as K,
destroy_each as L,
destroy_each as K,
SvelteComponent as S,
space as a,
insert_hydration as b,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { C as noop, s as safe_not_equal } from "./index-4e8a7cd9.js";
import { C as noop, s as safe_not_equal } from "./index-2f3863e0.js";
const subscriber_queue = [];
function writable(value, start = noop) {
let stop;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { S as SvelteComponent, i as init, s as safe_not_equal, k as element, q as text, a as space, l as claim_element, m as children, r as claim_text, h as detach, c as claim_space, b as insert_hydration, H as append_hydration, u as set_data, C as noop, I as component_subscribe } from "../chunks/index-4e8a7cd9.js";
import { s as stores } from "../chunks/singletons-ed2d31f0.js";
import { S as SvelteComponent, i as init, s as safe_not_equal, k as element, q as text, a as space, l as claim_element, m as children, r as claim_text, h as detach, c as claim_space, b as insert_hydration, H as append_hydration, u as set_data, C as noop, I as component_subscribe } from "../chunks/index-2f3863e0.js";
import { s as stores } from "../chunks/singletons-95c5733a.js";
const getStores = () => {
const stores$1 = stores;
return {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { S as SvelteComponent, i as init, s as safe_not_equal, D as create_slot, E as update_slot_base, F as get_all_dirty_from_scope, G as get_slot_changes, f as transition_in, t as transition_out } from "../../chunks/index-4e8a7cd9.js";
import { S as SvelteComponent, i as init, s as safe_not_equal, D as create_slot, E as update_slot_base, F as get_all_dirty_from_scope, G as get_slot_changes, f as transition_in, t as transition_out } from "../../chunks/index-2f3863e0.js";
const app = "";
function create_fragment(ctx) {
let current;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { S as SvelteComponent, i as init, s as safe_not_equal, D as create_slot, k as element, q as text, a as space, l as claim_element, m as children, r as claim_text, c as claim_space, h as detach, n as attr, b as insert_hydration, H as append_hydration, u as set_data, E as update_slot_base, F as get_all_dirty_from_scope, G as get_slot_changes, f as transition_in, t as transition_out, x as create_component, y as claim_component, J as src_url_equal, K as set_custom_element_data, z as mount_component, L as destroy_each, A as destroy_component, C as noop, p as set_style } from "../../chunks/index-4e8a7cd9.js";
import { S as SvelteComponent, i as init, s as safe_not_equal, D as create_slot, k as element, q as text, a as space, l as claim_element, m as children, r as claim_text, c as claim_space, h as detach, n as attr, b as insert_hydration, H as append_hydration, u as set_data, E as update_slot_base, F as get_all_dirty_from_scope, G as get_slot_changes, f as transition_in, t as transition_out, x as create_component, y as claim_component, J as src_url_equal, p as set_style, z as mount_component, K as destroy_each, A as destroy_component, o as onMount, C as noop } from "../../chunks/index-2f3863e0.js";
function create_fragment$1(ctx) {
let section;
let a;
Expand Down Expand Up @@ -231,7 +231,12 @@ function create_each_block(ctx) {
class: true
});
var a_nodes = children(a);
img = claim_element(a_nodes, "IMG", { src: true, alt: true, class: true });
img = claim_element(a_nodes, "IMG", {
src: true,
alt: true,
class: true,
height: true
});
t = claim_space(a_nodes);
a_nodes.forEach(detach);
this.h();
Expand All @@ -246,7 +251,8 @@ function create_each_block(ctx) {
/*alt*/
ctx[1]
);
attr(img, "class", "h-8 sm:h-14 md:h-20 drop-shadow-2xl svelte-8fii8a");
attr(img, "class", "sm:h-14 md:h-20 drop-shadow-2xl svelte-8fii8a");
attr(img, "height", "32");
attr(
a,
"href",
Expand Down Expand Up @@ -708,40 +714,20 @@ function create_default_slot_1(ctx) {
function create_default_slot(ctx) {
let img0;
let img0_src_value;
let t0;
let t;
let img1;
let img1_src_value;
let t1;
let amp_ad;
let div;
return {
c() {
img0 = element("img");
t0 = space();
t = space();
img1 = element("img");
t1 = space();
amp_ad = element("amp-ad");
div = element("div");
this.h();
},
l(nodes) {
img0 = claim_element(nodes, "IMG", { src: true, alt: true, class: true });
t0 = claim_space(nodes);
t = claim_space(nodes);
img1 = claim_element(nodes, "IMG", { src: true, alt: true, class: true });
t1 = claim_space(nodes);
amp_ad = claim_element(nodes, "AMP-AD", {
width: true,
height: true,
type: true,
"data-ad-client": true,
"data-ad-slot": true,
"data-auto-format": true,
"data-full-width": true
});
var amp_ad_nodes = children(amp_ad);
div = claim_element(amp_ad_nodes, "DIV", { overflow: true });
children(div).forEach(detach);
amp_ad_nodes.forEach(detach);
this.h();
},
h() {
Expand All @@ -753,35 +739,20 @@ function create_default_slot(ctx) {
attr(img1, "src", img1_src_value);
attr(img1, "alt", "App 2");
attr(img1, "class", "h-[70vh] svelte-8fii8a");
attr(div, "overflow", "");
set_custom_element_data(amp_ad, "width", "100vw");
set_custom_element_data(amp_ad, "height", "320");
set_custom_element_data(amp_ad, "type", "adsense");
set_custom_element_data(amp_ad, "data-ad-client", "ca-pub-9406040528414499");
set_custom_element_data(amp_ad, "data-ad-slot", "5257041353");
set_custom_element_data(amp_ad, "data-auto-format", "rspv");
set_custom_element_data(amp_ad, "data-full-width", "");
},
m(target, anchor) {
insert_hydration(target, img0, anchor);
insert_hydration(target, t0, anchor);
insert_hydration(target, t, anchor);
insert_hydration(target, img1, anchor);
insert_hydration(target, t1, anchor);
insert_hydration(target, amp_ad, anchor);
append_hydration(amp_ad, div);
},
p: noop,
d(detaching) {
if (detaching)
detach(img0);
if (detaching)
detach(t0);
detach(t);
if (detaching)
detach(img1);
if (detaching)
detach(t1);
if (detaching)
detach(amp_ad);
}
};
}
Expand Down Expand Up @@ -809,12 +780,13 @@ function create_fragment(ctx) {
let t5;
let section1;
let t6;
let amp_ad;
let div4;
let ins0;
let t7;
let section2;
let t8;
let section3;
let t9;
let ins1;
let current;
let each_value = (
/*social*/
Expand Down Expand Up @@ -886,12 +858,13 @@ function create_fragment(ctx) {
t5 = space();
create_component(section1.$$.fragment);
t6 = space();
amp_ad = element("amp-ad");
div4 = element("div");
ins0 = element("ins");
t7 = space();
create_component(section2.$$.fragment);
t8 = space();
create_component(section3.$$.fragment);
t9 = space();
ins1 = element("ins");
this.h();
},
l(nodes) {
Expand Down Expand Up @@ -934,23 +907,29 @@ function create_fragment(ctx) {
t5 = claim_space(nodes);
claim_component(section1.$$.fragment, nodes);
t6 = claim_space(nodes);
amp_ad = claim_element(nodes, "AMP-AD", {
width: true,
height: true,
type: true,
ins0 = claim_element(nodes, "INS", {
class: true,
style: true,
"data-ad-client": true,
"data-ad-slot": true,
"data-auto-format": true,
"data-full-width": true
"data-ad-format": true,
"data-full-width-responsive": true
});
var amp_ad_nodes = children(amp_ad);
div4 = claim_element(amp_ad_nodes, "DIV", { overflow: true });
children(div4).forEach(detach);
amp_ad_nodes.forEach(detach);
children(ins0).forEach(detach);
t7 = claim_space(nodes);
claim_component(section2.$$.fragment, nodes);
t8 = claim_space(nodes);
claim_component(section3.$$.fragment, nodes);
t9 = claim_space(nodes);
ins1 = claim_element(nodes, "INS", {
class: true,
style: true,
"data-ad-client": true,
"data-ad-slot": true,
"data-ad-format": true,
"data-full-width-responsive": true
});
children(ins1).forEach(detach);
this.h();
},
h() {
Expand Down Expand Up @@ -979,14 +958,18 @@ function create_fragment(ctx) {
attr(div2, "class", "p-10");
attr(div3, "class", "absolute top-0 w-full h-full grid place-items-center bg-gradient-to-b from-black/60 to-black/80");
attr(main, "class", "relative w-full h-screen bg-black");
attr(div4, "overflow", "");
set_custom_element_data(amp_ad, "width", "100vw");
set_custom_element_data(amp_ad, "height", "320");
set_custom_element_data(amp_ad, "type", "adsense");
set_custom_element_data(amp_ad, "data-ad-client", "ca-pub-9406040528414499");
set_custom_element_data(amp_ad, "data-ad-slot", "8074776384");
set_custom_element_data(amp_ad, "data-auto-format", "rspv");
set_custom_element_data(amp_ad, "data-full-width", "");
attr(ins0, "class", "adsbygoogle");
set_style(ins0, "display", "block");
attr(ins0, "data-ad-client", "ca-pub-9406040528414499");
attr(ins0, "data-ad-slot", "8074776384");
attr(ins0, "data-ad-format", "auto");
attr(ins0, "data-full-width-responsive", "true");
attr(ins1, "class", "adsbygoogle");
set_style(ins1, "display", "block");
attr(ins1, "data-ad-client", "ca-pub-9406040528414499");
attr(ins1, "data-ad-slot", "5257041353");
attr(ins1, "data-ad-format", "auto");
attr(ins1, "data-full-width-responsive", "true");
},
m(target, anchor) {
insert_hydration(target, main, anchor);
Expand All @@ -1012,12 +995,13 @@ function create_fragment(ctx) {
insert_hydration(target, t5, anchor);
mount_component(section1, target, anchor);
insert_hydration(target, t6, anchor);
insert_hydration(target, amp_ad, anchor);
append_hydration(amp_ad, div4);
insert_hydration(target, ins0, anchor);
insert_hydration(target, t7, anchor);
mount_component(section2, target, anchor);
insert_hydration(target, t8, anchor);
mount_component(section3, target, anchor);
insert_hydration(target, t9, anchor);
insert_hydration(target, ins1, anchor);
current = true;
},
p(ctx2, [dirty]) {
Expand Down Expand Up @@ -1095,13 +1079,17 @@ function create_fragment(ctx) {
if (detaching)
detach(t6);
if (detaching)
detach(amp_ad);
detach(ins0);
if (detaching)
detach(t7);
destroy_component(section2, detaching);
if (detaching)
detach(t8);
destroy_component(section3, detaching);
if (detaching)
detach(t9);
if (detaching)
detach(ins1);
}
};
}
Expand All @@ -1128,6 +1116,10 @@ function instance($$self) {
src: "favicon.png"
}
];
onMount(() => {
(window.adsbygoogle = window.adsbygoogle || []).push({});
(window.adsbygoogle = window.adsbygoogle || []).push({});
});
return [social];
}
class Page extends SvelteComponent {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { S as SvelteComponent, i as init, s as safe_not_equal, a as space, e as empty, c as claim_space, b as insert_hydration, g as group_outros, t as transition_out, d as check_outros, f as transition_in, h as detach, j as afterUpdate, o as onMount, k as element, l as claim_element, m as children, n as attr, p as set_style, q as text, r as claim_text, u as set_data, v as binding_callbacks, w as construct_svelte_component, x as create_component, y as claim_component, z as mount_component, A as destroy_component, B as tick } from "./chunks/index-4e8a7cd9.js";
import { S as SCROLL_KEY, a as SNAPSHOT_KEY, I as INDEX_KEY, g as get_base_uri, f as find_anchor, b as get_link_info, c as get_router_options, s as stores, i as is_external_url, d as scroll_state, e as base, P as PRELOAD_PRIORITIES, h as init$1, j as set_assets, k as set_version } from "./chunks/singletons-ed2d31f0.js";
import { S as SvelteComponent, i as init, s as safe_not_equal, a as space, e as empty, c as claim_space, b as insert_hydration, g as group_outros, t as transition_out, d as check_outros, f as transition_in, h as detach, j as afterUpdate, o as onMount, k as element, l as claim_element, m as children, n as attr, p as set_style, q as text, r as claim_text, u as set_data, v as binding_callbacks, w as construct_svelte_component, x as create_component, y as claim_component, z as mount_component, A as destroy_component, B as tick } from "./chunks/index-2f3863e0.js";
import { S as SCROLL_KEY, a as SNAPSHOT_KEY, I as INDEX_KEY, g as get_base_uri, f as find_anchor, b as get_link_info, c as get_router_options, s as stores, i as is_external_url, d as scroll_state, e as base, P as PRELOAD_PRIORITIES, h as init$1, j as set_assets, k as set_version } from "./chunks/singletons-95c5733a.js";
function normalize_path(path, trailing_slash) {
if (path === "/" || trailing_slash === "ignore")
return path;
Expand Down Expand Up @@ -900,9 +900,9 @@ const __vitePreload = function preload(baseModule, deps, importerUrl) {
};
const matchers = {};
const nodes = [
() => __vitePreload(() => import("./chunks/0-732fa97f.js"), true ? ["./chunks\\0-732fa97f.js","./chunks\\_layout-324900b4.js","./components\\pages\\_layout.svelte-52592f04.js","./chunks\\index-4e8a7cd9.js","./assets\\_layout-03af76df.css"] : void 0, import.meta.url),
() => __vitePreload(() => import("./chunks/1-4677a86b.js"), true ? ["./chunks\\1-4677a86b.js","./components\\error.svelte-1ff30dc9.js","./chunks\\index-4e8a7cd9.js","./chunks\\singletons-ed2d31f0.js"] : void 0, import.meta.url),
() => __vitePreload(() => import("./chunks/2-ac64c36d.js"), true ? ["./chunks\\2-ac64c36d.js","./components\\pages\\_page.svelte-855c2208.js","./chunks\\index-4e8a7cd9.js","./assets\\_page-6123fc05.css"] : void 0, import.meta.url)
() => __vitePreload(() => import("./chunks/0-eedf93b1.js"), true ? ["./chunks\\0-eedf93b1.js","./chunks\\_layout-324900b4.js","./components\\pages\\_layout.svelte-c7778512.js","./chunks\\index-2f3863e0.js","./assets\\_layout-cd9e057d.css"] : void 0, import.meta.url),
() => __vitePreload(() => import("./chunks/1-a0913cfa.js"), true ? ["./chunks\\1-a0913cfa.js","./components\\error.svelte-8a09f666.js","./chunks\\index-2f3863e0.js","./chunks\\singletons-95c5733a.js"] : void 0, import.meta.url),
() => __vitePreload(() => import("./chunks/2-0197b991.js"), true ? ["./chunks\\2-0197b991.js","./components\\pages\\_page.svelte-7619f75c.js","./chunks\\index-2f3863e0.js","./assets\\_page-6123fc05.css"] : void 0, import.meta.url)
];
const server_loads = [];
const dictionary = {
Expand Down
2 changes: 1 addition & 1 deletion docs/_app/version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"1681053140581"}
{"version":"1681064007956"}
Loading

0 comments on commit 19b58fd

Please sign in to comment.