mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-14 11:14:24 +00:00
Update form copy
This commit is contained in:
parent
25d054e64b
commit
4301f50d06
@ -97,32 +97,34 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
|
||||
const $amis = document.getElementById("amis");
|
||||
|
||||
fetch("https://jgthms.com/amis.json")
|
||||
.then((response) => {
|
||||
if (!response.ok) {
|
||||
throw new Error(`HTTP error! Status: ${response.status}`);
|
||||
}
|
||||
if ($amis) {
|
||||
fetch("https://jgthms.com/amis.json")
|
||||
.then((response) => {
|
||||
if (!response.ok) {
|
||||
throw new Error(`HTTP error! Status: ${response.status}`);
|
||||
}
|
||||
|
||||
return response.json();
|
||||
})
|
||||
.then((response) => {
|
||||
const { by_id, home } = response;
|
||||
return response.json();
|
||||
})
|
||||
.then((response) => {
|
||||
const { by_id, home } = response;
|
||||
|
||||
home.forEach((id) => {
|
||||
const ami = by_id[id];
|
||||
const { url, alt = "", width, height } = ami;
|
||||
const el = document.createElement("a");
|
||||
el.className = "bd-sponsor-item bd-partner-sponsor";
|
||||
el.href = "url";
|
||||
el.target = "_blank";
|
||||
el.title = alt;
|
||||
const extension = ami.svg ? ".svg" : ".png";
|
||||
const img = document.createElement("img");
|
||||
img.src = `/images/amis/${id}${extension}`;
|
||||
img.height = height;
|
||||
img.width = width;
|
||||
el.appendChild(img);
|
||||
$amis.appendChild(el);
|
||||
home.forEach((id) => {
|
||||
const ami = by_id[id];
|
||||
const { url, alt = "", width, height } = ami;
|
||||
const el = document.createElement("a");
|
||||
el.className = "bd-sponsor-item bd-partner-sponsor";
|
||||
el.href = url;
|
||||
el.target = "_blank";
|
||||
el.title = alt;
|
||||
const extension = ami.svg ? ".svg" : ".png";
|
||||
const img = document.createElement("img");
|
||||
img.src = `/images/amis/${id}${extension}`;
|
||||
img.height = height;
|
||||
img.width = width;
|
||||
el.appendChild(img);
|
||||
$amis.appendChild(el);
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
|
@ -160,6 +160,13 @@
|
||||
display: flex;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.label em {
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
opacity: 0.5;
|
||||
font-size: 0.875em;
|
||||
}
|
||||
}
|
||||
|
||||
.v1-tsp {
|
||||
|
File diff suppressed because it is too large
Load Diff
2
docs/css/bulma-docs.min.css
vendored
2
docs/css/bulma-docs.min.css
vendored
File diff suppressed because one or more lines are too long
@ -86,37 +86,39 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
|
||||
var $amis = document.getElementById("amis");
|
||||
|
||||
fetch("https://jgthms.com/amis.json").then(function (response) {
|
||||
if (!response.ok) {
|
||||
throw new Error("HTTP error! Status: " + response.status);
|
||||
}
|
||||
if ($amis) {
|
||||
fetch("https://jgthms.com/amis.json").then(function (response) {
|
||||
if (!response.ok) {
|
||||
throw new Error("HTTP error! Status: " + response.status);
|
||||
}
|
||||
|
||||
return response.json();
|
||||
}).then(function (response) {
|
||||
var by_id = response.by_id,
|
||||
home = response.home;
|
||||
return response.json();
|
||||
}).then(function (response) {
|
||||
var by_id = response.by_id,
|
||||
home = response.home;
|
||||
|
||||
|
||||
home.forEach(function (id) {
|
||||
var ami = by_id[id];
|
||||
var url = ami.url,
|
||||
_ami$alt = ami.alt,
|
||||
alt = _ami$alt === undefined ? "" : _ami$alt,
|
||||
width = ami.width,
|
||||
height = ami.height;
|
||||
home.forEach(function (id) {
|
||||
var ami = by_id[id];
|
||||
var url = ami.url,
|
||||
_ami$alt = ami.alt,
|
||||
alt = _ami$alt === undefined ? "" : _ami$alt,
|
||||
width = ami.width,
|
||||
height = ami.height;
|
||||
|
||||
var el = document.createElement("a");
|
||||
el.className = "bd-sponsor-item bd-partner-sponsor";
|
||||
el.href = "url";
|
||||
el.target = "_blank";
|
||||
el.title = alt;
|
||||
var extension = ami.svg ? ".svg" : ".png";
|
||||
var img = document.createElement("img");
|
||||
img.src = "/images/amis/" + id + extension;
|
||||
img.height = height;
|
||||
img.width = width;
|
||||
el.appendChild(img);
|
||||
$amis.appendChild(el);
|
||||
var el = document.createElement("a");
|
||||
el.className = "bd-sponsor-item bd-partner-sponsor";
|
||||
el.href = url;
|
||||
el.target = "_blank";
|
||||
el.title = alt;
|
||||
var extension = ami.svg ? ".svg" : ".png";
|
||||
var img = document.createElement("img");
|
||||
img.src = "/images/amis/" + id + extension;
|
||||
img.height = height;
|
||||
img.width = width;
|
||||
el.appendChild(img);
|
||||
$amis.appendChild(el);
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
@ -21,14 +21,14 @@ layout: playground
|
||||
</div>
|
||||
|
||||
<div class="block">
|
||||
<label class="label" for="name">Name</label>
|
||||
<label class="label" for="name">Name <em>(required)</em></label>
|
||||
<div class="form-control">
|
||||
<input class="input" type="text" name="name" id="name">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="block">
|
||||
<label class="label" for="email">Email</label>
|
||||
<label class="label" for="email">Email <em>(required)</em></label>
|
||||
<div class="form-control">
|
||||
<input class="input" type="email" name="email" id="email">
|
||||
</div>
|
||||
@ -43,6 +43,7 @@ layout: playground
|
||||
|
||||
<input type="hidden" name="list" value="cLsqDIbNTqfozYoXXXBLrw">
|
||||
<input type="hidden" name="subform" value="yes">
|
||||
|
||||
<input class="button is-primary" type="submit" name="submit" id="submit">
|
||||
|
||||
<p class="v1-tsp">No spam. Just a few emails regarding gaining access and providing feedback.</p>
|
||||
|
Loading…
Reference in New Issue
Block a user