A new start

This commit is contained in:
James 2019-10-02 20:36:03 +01:00
commit 43ef8b6b4f
5 changed files with 62 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.css
error.txt

1
.htaccess Normal file
View File

@ -0,0 +1 @@
Header set Access-Control-Allow-Origin "*"

15
dev.js Normal file
View File

@ -0,0 +1,15 @@
// read text from URL location
var request = new XMLHttpRequest();
request.open('GET', 'https://jhodges.co.uk/dev/error.txt', true);
request.send(null);
request.onreadystatechange = function () {
if (request.readyState === 4 && request.status === 200) {
var type = request.getResponseHeader('Content-Type');
if (type.indexOf("text") !== 1) {
str=request.responseText.trim();
if(str){
alert(str);
}
}
}
}

42
dev.less Normal file
View File

@ -0,0 +1,42 @@
/*
*{
border: 1px solid black;
}
.ves-container{
.row-level-1{
border: 1px solid blue;
}
.col-inner{
border: 1px solid yellow;
}
}
*/
/*****/
body::before {
content: 'Development Server';
background: #f00;
padding: 5px 10px;
display: block;
position: fixed;
bottom: 0;
right: 0;
color: white;
font-size: 20px;
font-weight: bold;
z-index: 9999;
}
#product-fancybox-gallery{
display: flex;
margin: -1vw;
a{
padding: 1vw;
flex-grow: 1;
}
img{
width: 100%;
margin: 0;
}
}

2
pull.php Normal file
View File

@ -0,0 +1,2 @@
<?php
passthru('git pull 2>error.txt && (lessc dev.less > dev.css 2>error.txt)');