Page 1 of 1
County of Volsung webpage
Posted: Mon Sep 19, 2005 5:21 am
by Zirandorthel
Since the Employment Office has once again proved itself to be a waste of time..Quote:I would like help in developing a webpage for Volsung. I'll admit to being no designer, and frames and things tend to confound me too much.Something similar to the Hyperborean webpage would be nice.Basically what I want is to give someone the information and have them do up the webpage for me. Anyone interested?La. Wil Nider to the HyperboreansEoin to the restZirandorthel to the ages
Re: County of Volsung webpage
Posted: Tue Sep 20, 2005 9:10 pm
by Gryphon the Pure
Just because I can:; a WEBPAGE is (make-page STRING STRING PAGE-BODY)(define-struct page (url title content)); a PAGE-BODY is :; - STRING; - HTML DOCUMENT (whateverthefuck); a WEBSITE is :; LIST[WEBPAGE]; a LINK is (make-link STRING STRING)(define-struct link (url title)); create-sidebar : WEBSITE -- LIST[linkS]; makes a list of links to all pages in a site for use in a sidebar(define (create-sidebar asite) (make-links (map page-url asite) (map page-title asite))); make-links : LIST[STRING] LIST[STRING] -- LIST[link]; compiles a list of urls and titles into a list of links(define (make-links alou alot) (cond [(empty? alou) empty] [(cons? alou) (cons (make-link (first alou) (first alot)) (make-links (rest alou) (rest alot)))])); print-page : WEBSITE STRING -- VOID; creates a page of a certain name in a website with a title, sidebar, and body(define (print-page asite atitle) (let ([page (first (filter (lambda (apage) (string=? atitle (page-title apage))) asite))] [title (page-title page)] [body (page-body page)] [sidebar (create-sidebar asite)]) (begin (set-title atitle) (set-table (set-sidebar sidebar) (set-body body)))))
Re: County of Volsung webpage
Posted: Sat Oct 22, 2005 1:48 am
by Ari Rahikkala
The lack of prettyprinting hurts my eyes The league of sadistic telepaths: "There's someone in your head and it's not you"Edited by: Ari Rahikkala at: 10/22/05 2:50
Re: County of Volsung webpage
Posted: Wed Oct 26, 2005 2:41 pm
by Kaiser Yarad I
What the hell was all that anyway?Nobody, then? Sigh...
Re: County of Volsung webpage
Posted: Wed Oct 26, 2005 8:17 pm
by Gryphon the Pure
scheme code for building a template webpage?
Re: County of Volsung webpage
Posted: Sat Oct 29, 2005 4:38 am
by Ari Rahikkala
You could have at least been nice enough to use R5RS instead of PLT Scheme ... The league of sadistic telepaths: "There's someone in your head and it's not you"
Re: County of Volsung webpage
Posted: Wed Nov 02, 2005 7:46 am
by Scott of Hyperborea
Why don't you just take the page source for the Hyperborean page, copy it, and replace all of the text and stuff with Volsaarn stuff?
Re: County of Volsung webpage
Posted: Wed Nov 02, 2005 3:21 pm
by Kaiser Yarad I
Well yeah, that's what I was doing, but I ended up...well me and frames don't mix, let's just say.