« first day (1633 days earlier)      last day (2155 days later) » 

02:15
@clickhere doing other things I suppose
I was sleeping :P
posted on October 18, 2017

New Cyanide and Happiness Comic

 
11 hours later…
13:05
@Mr.Alien what don't ya get
@clickhere here :-P
13:50
so I've got a 'website' which is simply just a lot of html files in a folder on SharePoint. I'm using some JS to pull my nav.html file into each html file. Thing is that I have all html files sitting in the same folder. But I want to start to have sub-folders. Problem is that my javascript on those sites is wrong and/or my static file urls are wrong.
When I would do this sort of thing in python/django it would handle all of my urls for me
via static file var
And I'm basically trying to toe the line between fully fledged project and simple project for little stuff. But it's growing and I don't like the idea of manually updating all of my static file urls or the js that pulls in the navbar
Which is just:
$.get("nav.html", function(data){
$("#nav-placeholder").replaceWith(data);
});
Thoughts? recommendations?
14:03
I don't know of a workaround. If you move files into new folders you need to update the filepaths in the code
opening your code in a decent IDE and doing search & replace shouldn't be too hard

« first day (1633 days earlier)      last day (2155 days later) »