Revert yandex ab-test
This commit is contained in:
@@ -13,7 +13,4 @@ COPY --from=builder /app/node_modules node_modules/
|
||||
COPY package.json .
|
||||
EXPOSE 3000
|
||||
ENV NODE_ENV=production
|
||||
|
||||
HEALTHCHECK CMD curl --fail http://localhost:3000 || exit 1
|
||||
|
||||
CMD [ "node", "build" ]
|
||||
|
||||
12
src/app.html
12
src/app.html
@@ -1,6 +1,5 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
||||
@@ -19,14 +18,7 @@
|
||||
clickmap: true,
|
||||
trackLinks: true,
|
||||
accurateTrackBounce: true,
|
||||
webvisor: true,
|
||||
});
|
||||
|
||||
|
||||
ym(88895893, "getClientID", function (clientID) {
|
||||
ym(88895893, 'userParams', {
|
||||
university_test_group: Number(clientID.slice(-1)) % 2 === 0 ? 'a' : 'b'
|
||||
});
|
||||
webvisor: true
|
||||
});
|
||||
</script>
|
||||
<noscript>
|
||||
@@ -34,9 +26,7 @@
|
||||
</noscript>
|
||||
<!-- /Yandex.Metrika counter -->
|
||||
</head>
|
||||
|
||||
<body data-sveltekit-preload-data="hover">
|
||||
<div style="display: contents">%sveltekit.body%</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,30 +1,19 @@
|
||||
<script lang="ts">
|
||||
import { onMount } from "svelte";
|
||||
import {t} from "$lib/translations";
|
||||
import Project from "./Project.svelte";
|
||||
import {projects} from "./projects";
|
||||
|
||||
let wrapperClass = "grid gap-8 md:grid-cols-2 lg:grid-cols-3";
|
||||
|
||||
onMount(() => {
|
||||
window.ym(88895893, "getClientID", function (clientID) {
|
||||
const university_test_group =
|
||||
Number(clientID.slice(-1)) % 2 === 0 ? "a" : "b";
|
||||
if (university_test_group === "b") {
|
||||
wrapperClass = wrapperClass.replace("lg:grid-cols-3", "lg:grid-cols-2")
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<section class="px-2 md:px-8 mb-16 max-w-[1280px] mx-auto">
|
||||
<h2 class="text-3xl mb-4 md:text-4xl">
|
||||
{$t("projects.h")}
|
||||
{$t('projects.h')}
|
||||
</h2>
|
||||
|
||||
<div class={wrapperClass}>
|
||||
<div class="grid gap-8 md:grid-cols-2 lg:grid-cols-3">
|
||||
{#each projects as project}
|
||||
<Project {project}></Project>
|
||||
<Project
|
||||
project={project}
|
||||
></Project>
|
||||
{/each}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user