mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-13 22:42:24 +00:00
Cleanup the site JS
This commit is contained in:
@@ -10,7 +10,7 @@ $(document).ready(function () {
|
|||||||
// Hackspace status
|
// Hackspace status
|
||||||
if ($('span#hackspace-status').length) {
|
if ($('span#hackspace-status').length) {
|
||||||
if (data.state.open) {
|
if (data.state.open) {
|
||||||
message = '<b>Open<b>'
|
message = '<b>Open</b>'
|
||||||
if ('message' in data.state) {
|
if ('message' in data.state) {
|
||||||
message = message + ': ' + data.state.message;
|
message = message + ': ' + data.state.message;
|
||||||
}
|
}
|
||||||
@@ -19,7 +19,6 @@ $(document).ready(function () {
|
|||||||
} else {
|
} else {
|
||||||
$('span#hackspace-status').html('<b>Closed</b>');
|
$('span#hackspace-status').html('<b>Closed</b>');
|
||||||
}
|
}
|
||||||
console.log(atob('aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1IcDdBSVh5UkpwdyAtIERhYm8uLi4u'));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 'printers' shortcode
|
// 'printers' shortcode
|
||||||
@@ -53,17 +52,14 @@ $(document).ready(function () {
|
|||||||
source: new ol.source.Vector({
|
source: new ol.source.Vector({
|
||||||
features: [new ol.Feature({
|
features: [new ol.Feature({
|
||||||
geometry: new ol.geom.Point(center),
|
geometry: new ol.geom.Point(center),
|
||||||
name: "Leigh Hackspace",
|
|
||||||
})]
|
})]
|
||||||
}),
|
}),
|
||||||
style: new ol.style.Style({
|
style: new ol.style.Style({
|
||||||
image: new ol.style.Icon({
|
image: new ol.style.Icon({
|
||||||
scale: .06,
|
scale: .06,
|
||||||
anchorXUnits: 'fraction',
|
src: '../images/rose_logo.svg',
|
||||||
anchorYUnits: 'pixels',
|
|
||||||
src: '../images/rose_logo.svg',
|
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
view: new ol.View({
|
view: new ol.View({
|
||||||
@@ -74,4 +70,6 @@ $(document).ready(function () {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
console.log(atob('aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1IcDdBSVh5UkpwdyAtIERhYm8uLi4u'));
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user