|
Post by snipertom on Feb 24, 2014 14:48:29 GMT
Internal links are now working in the CodePen
|
|
|
Post by louisxiv on Feb 24, 2014 18:21:17 GMT
Hmm. CodePen no workee unless I let it run scripts from Google Analytics. Which I won't. Fiddlesticks.
|
|
|
Post by louisxiv on Feb 24, 2014 18:25:04 GMT
I have no problem with furry comics. Not even most of the nsfw ones. However, Jay Naylor in particular does some pretty damn creepy stuff in the adult section of the site. Oh god I just read the encyclopaedia dramatica entry for him. I'm not sure ED is well-known as a neutral unbiased reference source…
|
|
|
Post by louisxiv on Feb 24, 2014 18:27:27 GMT
I've combined event.css, all.css and some css that was in the html of the page itself into the css you see in the 'css' tab so that it's all in one place and thus less confusing. Ah, yes, that has been needing done for a while. I kept putting it off with a thought of moving to bootstrap css and tidying all in the process.
|
|
|
Post by louisxiv on Feb 24, 2014 20:23:31 GMT
What keys does the index file need?
So far I have
url: the page url - used for making links to the source page: the reference for the page - often the page number or date tag: the people or things in the page that might be searched/selected for desc: some sort of page description - usually a line of dialogue or an actual description of an event
I'm going to add
note: for commentary that isn't description, maybe, like the wiki and wikipedia links and 'also see page 123'.
I'm pondering
auth: for author's comment - the Tom: comments we've listed for some pages
So is there any other class of thing we might usefully include in the index page in the new, more flexible source, unconstrained by the limitations of the previous single line approach?
|
|
|
Post by louisxiv on Feb 24, 2014 23:58:45 GMT
Mostly done, except for the internal links (which should be trivial), and I haven't implemented the unselected->selected->'not' thing just yet. You can preview this here: codepen.io/snipergirl/pen/bHGnt(Basically click on the title of each tab to show the 'compiled' html/css/js) There are some structural changes to the html that make it work on mobile devices (essentially replacing "span" with "a href='#'"), as well as general improvements to the handler.js I've combined event.css, all.css and some css that was in the html of the page itself into the css you see in the 'css' tab so that it's all in one place and thus less confusing. The HTML is only referring to weird amazonaws links because that's where assets are stored on codepen. Ok, gritted teeth and enabled js for everything codepen demands (bah, mutter, mumble...) Multi tag selection looks good! But unselecting seems awkward, and slow. But that may be cosmetic due to the environment? May have to rethink colours for the selected/hovered/unselected cycle - there's some odd stickyness of colour changes there, again: maybe an effect of codepen or just of amalgamating the slightly iffy css I had lying about? I'm curious: why do you need to replace "span" with "a href='#'" for mobile? Good work, I'm looking forward to rolling it out.
|
|
|
Post by snipertom on Feb 25, 2014 5:56:39 GMT
Regarding the a href='#', it seems that anything other than a link isn't 'clickable' - possibly to prevent strange things from happening otherwise. I've tested this on several devices; changing to a link fixes all. The awkward slowness I think is purely due to it being in codepen. Give it a go outside it and see! That said, I haven't found it all that slow myself- however I'm on a fast connection and a new, gaming computer. The full page preview is here: codepen.io/snipergirl/full/bHGnt alphabet filtering is working now. I've also done a fuckton of css cleanup too haha especially getting rid of unused classes and properties, as well as some little tweaks to make it clearer when something's highlighted. louisxiv turns out that we haven't tagged Artilleryman (I KNOW RIGHT?!). Should I be updating this now or after you finish the format update? Still having a think about anything else needing adding Wiki would be nice- just the xxxxxx part of 'http://gunnerkrigg.wikia.com/wiki/xxxxxx' Date posted is a possibility however we simply don't have the original dates do we? I guess we could go look on webarchive for the earliest comics and look on the forum for the rest...
|
|
|
Post by Gotolei on Feb 25, 2014 18:27:49 GMT
For the date, the title of .section > .main > .content > .important has "Public on DD Mth, YEAR" on every page.
|
|
|
Post by louisxiv on Feb 25, 2014 21:29:13 GMT
I've also done a fuckton of css cleanup too haha especially getting rid of unused classes and properties, as well as some little tweaks to make it clearer when something's highlighted. Heh. There were at least four, maybe five generations of my older websites’ special cases in the css, back to the mid 2000s. Well I’ve pushed it all to github now, it’s in my gunnerkrigg repo and there’s a pull request open to yours. The new format index file is index-cig.txt, rather than stamp on the old format. The new format is still work in progress but as far as I can see there are no show stoppers, just some refinements to add. So add the Artilleryman (dude in C18 tricorn, military crossbelts, seen in the Founding sim?) in the new file by all means. cig.py – the new generator script – is up on my gci repository, by the way. Wiki: I can see the advantage of a dedicated key, as you suggest, but shortcutting wouldn’t work in the general case: you’d have to use the full url I think. Hmm, in which case maybe it should be a ref: (reference) key with a Markdown link, so it can be generally used a wiki, wikipedia, etc link? N.B. – cig.py’s processing is intended to be general – not just for Gunnerkrigg, but for Misfile (which also has a wiki), and maybe others one day. Date posted - that’s a good one. Misfile has the date as the page ID, which interesting for context sometimes, and I’d like the same context for Gunnerkrigg pages too. Easy to implement (at a dumb text level anyway) – I'll put that on the TODO.
|
|
|
Post by louisxiv on Feb 25, 2014 21:34:56 GMT
For the date, the title of .section > .main > .content > .important has "Public on DD Mth, YEAR" on every page. Coo! Useful, thanks. That should be scrape-able... Anyone? Interesting: First page is "Public on 4 Apr 2005 | 12:00 AM" - is that correct?
|
|
|
Post by snipertom on Feb 26, 2014 4:15:04 GMT
For the date, the title of .section > .main > .content > .important has "Public on DD Mth, YEAR" on every page. Coo! Useful, thanks. That should be scrape-able... Anyone? Interesting: First page is "Public on 4 Apr 2005 | 12:00 AM" - is that correct? Sounds about right. web.archive.org/web/*/gunnerkrigg.comI'm guessing that the reason the date originally posted is around is because the original page urls were done that way.
|
|
|
Post by snipertom on Feb 26, 2014 4:21:04 GMT
I've also done a fuckton of css cleanup too haha especially getting rid of unused classes and properties, as well as some little tweaks to make it clearer when something's highlighted. Heh. There were at least four, maybe five generations of my older websites’ special cases in the css, back to the mid 2000s. Well I’ve pushed it all to github now, it’s in my gunnerkrigg repo and there’s a pull request open to yours. The new format index file is index-cig.txt, rather than stamp on the old format. The new format is still work in progress but as far as I can see there are no show stoppers, just some refinements to add. So add the Artilleryman (dude in C18 tricorn, military crossbelts, seen in the Founding sim?) in the new file by all means. cig.py – the new generator script – is up on my gci repository, by the way. Wiki: I can see the advantage of a dedicated key, as you suggest, but shortcutting wouldn’t work in the general case: you’d have to use the full url I think. Hmm, in which case maybe it should be a ref: (reference) key with a Markdown link, so it can be generally used a wiki, wikipedia, etc link? N.B. – cig.py’s processing is intended to be general – not just for Gunnerkrigg, but for Misfile (which also has a wiki), and maybe others one day. Date posted - that’s a good one. Misfile has the date as the page ID, which interesting for context sometimes, and I’d like the same context for Gunnerkrigg pages too. Easy to implement (at a dumb text level anyway) – I'll put that on the TODO. Nice work! I'll have a look at your new index-cig.txt later on Regarding the wiki URLs- I already checked; they are all in that format :-). However the point about it needing to be generalisable to other comics is a good one. The full URL isn't a huge issue. EDIT: louisxiv for some reason I haven't received a pull request on my github- just checked. do you mind doing it again?
|
|
|
Post by snipertom on Feb 26, 2014 4:32:32 GMT
Wait a sec- the wiki links only apply to the alltags! Are you envisioning making similar changes to alltags? It would allow us to more easily add tag categories for example...
|
|
|
Post by louisxiv on Feb 26, 2014 19:48:43 GMT
Wait a sec- the wiki links only apply to the alltags! Are you envisioning making similar changes to alltags? It would allow us to more easily add tag categories for example... Yes, but I want to concentrate of the index file first. The benefits of reorganising the tags file are there – common structure, cleaner format, greater flexibility/extendability – but less of an immediate win than with reorganising the main file.
|
|
|
Post by louisxiv on Feb 26, 2014 21:06:33 GMT
louisxiv for some reason I haven't received a pull request on my github- just checked. do you mind doing it again? I've just sent another pull (along with tagging p1320 I’ve just been tidying up some of my local test file and discovered I’d got out of sync with myself :( )
|
|
|
Post by louisxiv on Feb 26, 2014 21:08:13 GMT
Tag Query: Kat’s shirt logo
Can anyone make out the motto – I think we’ve tagged this sort of thing before.
|
|
|
Post by snipertom on Feb 27, 2014 10:26:50 GMT
It's vault tec from fallout
|
|
|
Post by louisxiv on Mar 2, 2014 19:28:37 GMT
Index Page updated: 1354 pages indexed, 450 tags defined That is 1321 pages of the main comic plus Annie in the Forest Pt1
Geek Pride Corner: The script that does the heavy lifting now supports tagging and descriptions as before, page urls with page id substitution, a notes field, an author/artist comments field and a publication date (text) field. I'm now running the Misfile index off the same script, at last. Next up: snipertom’s selection/search javascript and css improvements.
|
|
|
Post by louisxiv on Mar 2, 2014 19:31:18 GMT
It's vault tec from fallout Turns out we have not tagged Kat's shirt logos and mottos previously, which seems an odd omission, so I'm leaving it until I have time for a full archive run.
|
|
|
Post by louisxiv on Mar 9, 2014 19:25:19 GMT
Index page updated: 1357 pages indexed, 454 tags defined Now using snipertom’s enhanced javascript code for multi-tag selection. Huzzah!!(Also using ssi (server side includes) for the page itself so I don’t have to edit it for each update. That is not exactly user-facing, but yay! me anyway…)
|
|
|
Post by snipertom on Mar 9, 2014 19:39:07 GMT
Ooh exciting indeed! And great work! There's something really rewarding about making something new behind the scenes even if it's somewhat invisble congrats!! BTW, i think you're using an outdated version of the JS- I fixed up the alpha tags in the script awhile back, so try uploading a newer copy of the JS from the codepen perhaps? Are you planning eventually to turn the span tags into < a > for the mobile friendlies btw?
|
|
|
Post by louisxiv on Mar 9, 2014 20:06:04 GMT
I'll check - I thought that was a version from yesterday, though I might have got confused with all the versions of test folders I have lying about Actually, could you put the official snipergirl-blessed version on GitHub maybe? I'll switch over to using mobile-friendly < a > when I've wrangled the Misfile index into line too – having just got both running off the same script I don't want to break that by using span on one and a on the other.
Just re-copied the handler.js code. I’m using the the same version as on codepen, apart from my wee edit to revert to check span rather than a for the tag initial characters.
|
|
|
Post by snipertom on Mar 9, 2014 20:19:27 GMT
I'll check - I thought that was a version from yesterday, though I might have got confused with all the versions of test folders I have lying about Actually, could you put the official snipergirl-blessed version on GitHub maybe? I'll switch over to using mobile-friendly < a > when I've wrangled the Misfile index into line too – having just got both running off the same script I don't want to break that by using span on one and a on the other. Yeah no worries, sounds good - to all of the above! (i really should have remembered to put that handler.js in there thanks for reminding me!) ....aaaaaaand it's up
|
|
|
Post by snipertom on Mar 9, 2014 20:21:03 GMT
Just re-copied the handler.js code. I’m using the the same version as on codepen, apart from my wee edit to revert to check span rather than a for the tag initial characters. Weird, I must have made some additional changes in the codepen that I can't remember. I'll have a look at it over the next day or two. Sorry about that
|
|
|
Post by louisxiv on Mar 9, 2014 21:15:14 GMT
Weird, I must have made some additional changes in the codepen that I can't remember. I'll have a look at it over the next day or two. Sorry about that Heh. btdt…
|
|
|
Post by freeformline on Mar 11, 2014 5:58:17 GMT
Can I just say that you people are really cool? Because you are.
|
|
|
Post by louisxiv on Mar 11, 2014 18:32:07 GMT
[Bows]
|
|
|
Post by snipertom on Mar 11, 2014 18:52:56 GMT
|
|
|
Post by louisxiv on Mar 15, 2014 10:20:14 GMT
Heads up snipertom: I've moved index.txt over to the new format and removed the index-cig.txt testing version. I'd guess this probably breaks your old helper scripts if they depended on the old format.
|
|
|
Post by louisxiv on Mar 16, 2014 16:57:46 GMT
Aha! I wondered why there was a wee spike in the site stats a couple of days back, from a twitter link. Original Tweet
|
|