From 36d0dcf20fb8471ec58f66ca713506ddbf3d0b8b Mon Sep 17 00:00:00 2001 From: Taka Date: Sun, 28 Jul 2019 11:42:53 +0000 Subject: [PATCH] Replaced rawgit.com links with vasl-templates.org. --- README.md | 9 +++++---- chapter-h/README.md | 2 +- vasl_templates/webapp/static/help/index.html | 1 - vasl_templates/webapp/static/help/main.js | 12 ++++++++++++ 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9d2d1fc..d66427f 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,8 @@ You can find more examples of the program in action [here](https://github.com/pa ### Documentation -* [User Guide](https://rawgit.com/pacman-ghost/vasl-templates/master/vasl_templates/webapp/static/help/index.html?tab=userguide) -* [Installation](https://rawgit.com/pacman-ghost/vasl-templates/master/vasl_templates/webapp/static/help/index.html?tab=installation) -* [Writing your own templates](https://rawgit.com/pacman-ghost/vasl-templates/master/vasl_templates/webapp/static/help/index.html?tab=templatepacks) -* [For developers](https://rawgit.com/pacman-ghost/vasl-templates/master/vasl_templates/webapp/static/help/index.html?tab=fordevelopers) +* [User Guide](https://vasl-templates.org/help?tab=userguide) +* [Installation](https://vasl-templates.org/help?tab=installation) +* [Setting up Chapter H data](https://vasl-templates.org/help?tab=chapterh) +* [Writing your own templates](https://vasl-templates.org/help?tab=templatepacks) +* [For developers](https://vasl-templates.org/help?tab=fordevelopers) diff --git a/chapter-h/README.md b/chapter-h/README.md index cb9f7bd..afa3109 100644 --- a/chapter-h/README.md +++ b/chapter-h/README.md @@ -2,4 +2,4 @@ It is possible to include Chapter H notes in your VASL scenarios, but since this is copyrighted material, it is not included in releases, and you will need to set up the data yourself. -The ZIP file in this directory contains placeholder files for the Chapter H notes, refer to the [documentation](https://rawgit.com/pacman-ghost/vasl-templates/master/vasl_templates/webapp/static/help/index.html?tab=chapterh) for instructions on how to set things up. +The ZIP file in this directory contains placeholder files for the Chapter H notes, refer to the [documentation](https://vasl-templates.org/help/?tab=chapterh) for instructions on how to set things up. diff --git a/vasl_templates/webapp/static/help/index.html b/vasl_templates/webapp/static/help/index.html index 2df8e3e..f111e41 100644 --- a/vasl_templates/webapp/static/help/index.html +++ b/vasl_templates/webapp/static/help/index.html @@ -498,6 +498,5 @@ The script will compile the program, then package it all up with the necessary s - diff --git a/vasl_templates/webapp/static/help/main.js b/vasl_templates/webapp/static/help/main.js index b682807..5c8b1ab 100644 --- a/vasl_templates/webapp/static/help/main.js +++ b/vasl_templates/webapp/static/help/main.js @@ -81,3 +81,15 @@ function select_tab( tab_id ) $( "a[href='#helptabs-" + tab_id + "']" ).click() ; $( "#helptabs-content" ).animate( { scrollTop: 0 }, 0 ) ; } + +function getUrlParam( param ) +{ + // look for the specified URL parameter + var url = window.location.search.substring( 1 ) ; + var params = url.split( "&" ) ; + for ( var i=0 ; i < params.length ; i++ ) { + var keyval = params[i].split( "=" ) ; + if ( keyval[0] == param ) + return keyval[1] ; + } +}