-
Notifications
You must be signed in to change notification settings - Fork 0
/
advertise.html
executable file
·211 lines (196 loc) · 7.03 KB
/
advertise.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<!DOCTYPE html>
<html lang="en">
<head>
<title>Advertise - FT website</title>
<meta property="og:title" content="Advertise - FT website" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta charset="utf-8" />
<meta property="twitter:card" content="summary_large_image" />
<style data-tag="reset-style-sheet">
html { line-height: 1.15;}body { margin: 0;}* { box-sizing: border-box; border-width: 0; border-style: solid;}p,li,ul,pre,div,h1,h2,h3,h4,h5,h6,figure,blockquote,figcaption { margin: 0; padding: 0;}button { background-color: transparent;}button,input,optgroup,select,textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0;}button,select { text-transform: none;}button,[type="button"],[type="reset"],[type="submit"] { -webkit-appearance: button;}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner { border-style: none; padding: 0;}button:-moz-focus,[type="button"]:-moz-focus,[type="reset"]:-moz-focus,[type="submit"]:-moz-focus { outline: 1px dotted ButtonText;}a { color: inherit; text-decoration: inherit;}input { padding: 2px 4px;}img { display: block;}html { scroll-behavior: smooth }
</style>
<style data-tag="default-style-sheet">
html {
font-family: Merriweather;
font-size: 16px;
}
body {
font-weight: 700;
font-style:normal;
text-decoration: none;
text-transform: capitalize;
letter-spacing: normal;
line-height: 1.3;
color: var(--dl-color-scheme-darkblue);
background-color: var(--dl-color-scheme-white);
}
</style>
<link
rel="shortcut icon"
href="public/ft_favicon.png"
type="icon/png"
sizes="32x32"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital,wght@0,400;1,400&display=swap"
data-tag="font"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap"
data-tag="font"
/>
<style>
.services-card:hover > div{
background-color: #fff
}
</style>
</head>
<body>
<link rel="stylesheet" href="./style.css" />
<div>
<link href="./advertise.css" rel="stylesheet" />
<div class="advertise-container">
<header
data-role="Header"
class="navigation-header navigation-root-class-name3"
>
<nav class="navigation-nav">
<a href="index.html" class="navigation-navlink Navigation-Link">
<span>HOME</span>
</a>
<a
href="get-a-copy.html"
class="navigation-navlink1 Navigation-Link"
>
<span>GET A COPY</span>
</a>
<a href="contact.html" class="navigation-navlink2 Navigation-Link">
<span>CONTACT</span>
</a>
<a
href="advertise.html"
class="navigation-navlink3 Navigation-Link"
>
<span>ADVERTISE</span>
</a>
</nav>
</header>
<span class="advertise-text">
<span>:) Announcements in Fool Tide :)</span>
<br />
<span>
Send a message out to the world about an upcoming project, event,
your favorite outfit, attitude or recipe, your friend's upcoming
birthday, etc.
</span>
<br />
<span>Pay what you want!</span>
<br />
<span>
FT operates entirely off of announcements (there is no other funding
involved). help us purchase paper and ink!
</span>
<br />
<br />
<span>
Standard size is 60x33mm, single color (greyscale). Double-size is
60x66.
</span>
<br />
<br />
<span>
Submit an image to tidefool @ gmail.com, or give us your description
and we'll help with layout.
</span>
<br />
</span>
<div class="advertise-container1">
<img
alt="image"
src="public/foxacid-300h.png"
class="advertise-image"
/>
</div>
</div>
</div>
<script src="https://unpkg.com/@teleporthq/teleport-custom-scripts"></script>
<script>
window.onload = () => {
const runAllScripts = () => {
initializeAllSliders();
};
const listenForUrlChanges = () => {
let url = location.href;
document.body.addEventListener(
"click",
() => {
requestAnimationFrame(() => {
if (url !== location.href) {
runAllScripts();
url = location.href;
}
});
},
true
);
};
const initializeAllSliders = () => {
const allSliders = document.querySelectorAll('[data-type="slider"]');
allSliders.forEach((slider) => {
initializeSlider(slider);
});
};
const initializeSlider = (slider) => {
const slides = slider.querySelectorAll('[data-type="slide"]');
const middle = Math.ceil(slides.length / 2);
let currentSlide = middle;
const nextSlideBtns = document.querySelectorAll(
'[data-action="nextSlide"]'
);
const previousSlideBtns = document.querySelectorAll(
'[data-action="previousSlide"]'
);
const changeSlide = (slideIndex, action) => {
currentSlide = slideIndex;
switch (action) {
case "next":
slideIndex === slides.length
? (currentSlide = 1)
: currentSlide++;
break;
case "previous":
slideIndex === 1
? (currentSlide = slides.length)
: currentSlide--;
}
const slide = slides[0];
if (!slide) {
console.error("No slides present");
return;
}
const style = window.getComputedStyle(slide);
slideWidth =
parseInt(style.width) +
parseInt(style.marginLeft) +
parseInt(style.marginRight);
const transformValue = -slideWidth * (currentSlide - middle);
slider.style.transform = `translateX(${transformValue}px)`;
};
previousSlideBtns.forEach((btn) => {
btn.addEventListener("click", () =>
changeSlide(currentSlide, "previous")
);
});
nextSlideBtns.forEach((btn) => {
btn.addEventListener("click", () =>
changeSlide(currentSlide, "next")
);
});
};
runAllScripts();
};
</script>
</body>
</html>