Small changes

Jonathan Hodgson 7 years ago
parent d128ee7bd2
commit cd024a9912
  1. 46
      chromeExtentions/dotcss/dotcss.js
  2. 46
      chromeExtentions/dotjs/dotjs.js
  3. 14
      config/oh-my-zsh/promptconfig.zsh

@ -1,27 +1,29 @@
var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://dotcss.local/' + window.location.host.replace(/^www\./, '') + '.css');
if(window.location.host.indexOf(".local") == -1){
var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://dotcss.local/' + window.location.host.replace(/^www\./, '') + '.css');
xhr.onreadystatechange = function() {
if(xhr.readyState == 4) {
if(xhr.status == 200) {
var style = document.createElement('style');
style.textContent = xhr.responseText;
document.head.appendChild(style);
return
} else if(xhr.status == 404) {
var defaultXHR = new XMLHttpRequest();
defaultXHR.open('GET', 'https://dotcss.local/default.css');
defaultXHR.onreadystatechange = function() {
if (defaultXHR.readyState == 4 && defaultXHR.status == 200){
var style = document.createElement('style');
style.textContent = defaultXHR.responseText;
document.head.appendChild(style);
return;
xhr.onreadystatechange = function() {
if(xhr.readyState == 4) {
if(xhr.status == 200) {
var style = document.createElement('style');
style.textContent = xhr.responseText;
document.head.appendChild(style);
return
} else if(xhr.status == 404) {
var defaultXHR = new XMLHttpRequest();
defaultXHR.open('GET', 'https://dotcss.local/default.css');
defaultXHR.onreadystatechange = function() {
if (defaultXHR.readyState == 4 && defaultXHR.status == 200){
var style = document.createElement('style');
style.textContent = defaultXHR.responseText;
document.head.appendChild(style);
return;
}
}
defaultXHR.send();
}
defaultXHR.send();
}
}
};
};
xhr.send();
xhr.send();
}

@ -1,27 +1,29 @@
var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://dotjs.local/' + window.location.host.replace(/^www\./, '') + '.js');
if(window.location.host.indexOf(".local") != -1){
var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://dotjs.local/' + window.location.host.replace(/^www\./, '') + '.js');
xhr.onreadystatechange = function() {
if(xhr.readyState == 4) {
if(xhr.status == 200) {
var script = document.createElement('script');
script.textContent = xhr.responseText;
document.head.appendChild(script);
return;
} else if(xhr.status == 404) {
var defaultXHR = new XMLHttpRequest();
defaultXHR.open('GET', 'https://dotjs.local/default.js');
defaultXHR.onreadystatechange = function() {
if (defaultXHR.readyState == 4 && defaultXHR.status == 200){
var script = document.createElement('script');
script.textContent = defaultXHR.responseText;
document.head.appendChild(script);
return;
xhr.onreadystatechange = function() {
if(xhr.readyState == 4) {
if(xhr.status == 200) {
var script = document.createElement('script');
script.textContent = xhr.responseText;
document.head.appendChild(script);
return;
} else if(xhr.status == 404) {
var defaultXHR = new XMLHttpRequest();
defaultXHR.open('GET', 'https://dotjs.local/default.js');
defaultXHR.onreadystatechange = function() {
if (defaultXHR.readyState == 4 && defaultXHR.status == 200){
var script = document.createElement('script');
script.textContent = defaultXHR.responseText;
document.head.appendChild(script);
return;
}
}
defaultXHR.send();
}
defaultXHR.send();
}
}
};
};
xhr.send();
xhr.send();
}

@ -2,15 +2,15 @@
# Custom dir command
function my_dir(){
homeIcon=" "
homeIcon=""
wpPluginsIcon=".p."
wpThemesIcon=".t."
siteIcon=" "
wpSiteIcon=" "
magentoSiteIcon=" "
dropboxIcon=" "
seperator=" "
root=" "
siteIcon=""
wpSiteIcon=""
magentoSiteIcon=""
dropboxIcon=""
seperator=" "
root=""
# Gets the path.
local current_path="$(print -P "%~")"

Loading…
Cancel
Save