Skip to content

Commit

Permalink
Externalized css and js files
Browse files Browse the repository at this point in the history
  • Loading branch information
GwendolyneFreddy committed Jan 11, 2021
1 parent 86e0bd6 commit 760597a
Show file tree
Hide file tree
Showing 3 changed files with 615 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
![Latest Release](https://img.shields.io/static/v1?label=release&message=v1.0.0&color=darkred)<a name="top" id="top">
![Latest Release](https://img.shields.io/github/v/release/SpellholdStudios/ReadmeTemplate?include_prereleases&color=darkred)<a name="top" id="top"> </a>
![Platform](https://img.shields.io/static/v1?label=platform&message=windows%20%7C%20Mac%20%7C%20linux&color=informational)
![Language](https://img.shields.io/static/v1?label=language&message=English%20%7C%20French%20%7C%20German%20%7C%20Italian%20%7C%20Russian%20%7C%20Spanish&color=limegreen)
![Language](https://img.shields.io/static/v1?label=language&message=English%20%7C%20French%20%7C%20German%20%7C%20Italian%20%7C%20Polish%20%7C%20Russian%20%7C%20Spanish&color=limegreen)


<div align="center"><h1>MYMOD</h1>
Expand Down Expand Up @@ -186,8 +186,8 @@ Here is a chart listing options related to the installation process (Don't chang

| Option | Install Option Description | Type | Values | Default |
| :---: | --- | :---: | :---: | :---: |
| mymod_variable1 | blabla<br>1 = first value description (recommended).<br>2 = second value description.<br> | integer | 1 or 2 | <strong>1<strong> |
| mymod_variable2 | blabla<br>1 = first value description (recommended).<br>2 = second value description.<br>3 = third value description.<br> | integer | 1, 2 or 3 | <strong>1<strong> |
| mymod_variable1 | blabla<br>1 = first option description (recommended).<br>2 = second option description.<br> | integer | 1 or 2 | <strong>1<strong> |
| mymod_variable2 | blabla<br>1 = first option description (recommended).<br>2 = second option description.<br>3 = third option description.<br> | integer | 1, 2 or 3 | <strong>1<strong> |
| mymod_variable3 | blabla<br> | string | one character | <strong>A<strong> |
| mymod_variable4 | blabla<br> | string | a name! | <strong>Hello<strong> |

Expand Down Expand Up @@ -238,29 +238,29 @@ The installer includes the following components. The number of each is the compo

##

><span style="margin-left: 50px;"><a href="#10">[10] Component blabla</a> <em>&nbsp;&nbsp;&nbsp;[main component]</em></span><</br>
><span style="margin-left: 50px;"><a href="#10">[10] Component blabla</a> <em>&nbsp;&nbsp;&nbsp;[main component]</em></span></br>
><span style="margin-left: 50px;"><a href="#20">[20] Component blublu</a></span></br>
><span style="margin-left: 50px;"><a href="#30">[30] Component bloblo</a></span></br>
><span style="margin-left: 50px;"><a href="#40">[40] ...</a></span></br>
<div align="right"><a href="#top">Back to top</a></div>
------------------------

<a name="10" id="10"></a>&#10173; **&#10173; [10] Component blabla (main component)**<br><br>
<a name="10" id="10"></a>&#10173; **[10] Component blabla (main component)**<br><br>

Main component description.
<div align="right"><a href="#componentslist">Back to components list</a></div>

##

<a name="10" id="20"></a>&#10173; **&#10173; [20] Component blublu**<br><br>
<a name="10" id="20"></a>&#10173; **[20] Component blublu**<br><br>

Component blublu description.
<div align="right"><a href="#componentslist">Back to components list</a></div>

##

<a name="30" id="10"></a>&#10173; **&#10173; [30] Component bloblo**<br><br>
<a name="30" id="10"></a>&#10173; **[30] Component bloblo**<br><br>

Component bloblo description.
<div align="right"><a href="#componentslist">Back to components list</a></div>
Expand All @@ -272,7 +272,7 @@ Component bloblo description.
## <a name="images" id="images"></a>Screenshots

#### 1PP basic example (1ppv4: Spell tweaks)
<div align="center"><img src="mydoc/readme/images/202.jpg"></div><br>
<div align="center"><img src="images/202.jpg"></div><br>
<div align="right"><a href="#top">Back to top</a></div>


Expand Down Expand Up @@ -357,7 +357,7 @@ Pick what you think insightful:

## <a name="versions" id="versions"></a>Version History

>&#9755; If your mod is hosted at GitHub, you can save yourself trouble of creating mod packages manually by using this <a href="https://github.com/InfinityTools/InfinityAutoPackager">tool</a>. It produces zip and <a href="https://github.com/ALIENQuake/ProjectInfinity/wiki/Specification-of-the-IEMOD-file-format">IEMod</a> packages for you when you create mod release. It is very easy to use and most SHS mods are released with it. For further documentation, please read <a href="https://forums.beamdog.com/discussion/78364/infinity-auto-packager-automatically-generate-and-adds-mod-packages-to-release-when-you-publish-it">this</a>.<br>
>&#9755; If your mod is hosted at GitHub, you can save yourself trouble of creating mod packages manually by using this <a href="https://github.com/InfinityTools/InfinityAutoPackager">tool</a>. It produces zip and <a href="https://github.com/ALIENQuake/ProjectInfinity/wiki/Specification-of-the-IEMOD-file-format">IEMod</a> packages for you when you create mod release. It is very easy to use and most SHS mods are released with it. For further documentation, please read <a href="https://forums.beamdog.com/discussion/78364/infinity-auto-packager-automatically-generate-and-adds-mod-packages-to-release-when-you-publish-it">this</a>.<br><br>

#### Version 2.0.0 &nbsp;(Month Day, Year)
Expand Down
46 changes: 46 additions & 0 deletions mymod/readme/scripts/script_shs_trick.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@

var LANG_EN = "en";

var hintTable = [];
hintTable[LANG_EN] =
[
"A dozen side quests to be played... or not...",
"More than a hundred maps, including new ones.",
"A bestiary inspired by PnP editions and proposing new creatures in BG2 universe.",
"Evil, Gem, Planar Dragons...",
"Fiends and Devils who take adwantage of the chaos wreaked in the Kingdom of Eternal Diamond to export their Blood War among human people.",
"A horde of vampires that would make Bodhi out to be a capricious little girl.",
"Undead knights whose beshavior is still so inflexible in the Hereafter.",
"New items.",
"Food ready-to-eat or needed for cooking.",
"An Alchimy set to create potions and miscellaneous items...",
];

var hintIdx = 0;

function showNextHint(lang, textId) {
var hints = hintTable[lang];
if (hints.length > 0) {
var elem = document.getElementById(textId);
if ('textContent' in elem) {
elem.textContent = hints[hintIdx];
} else {
elem.innerText = hints[hintIdx];
}
hintIdx = (hintIdx + 1) % hints.length;
}
}

function showHints(boxId, lang, textId) {
document.getElementById(boxId).style.display = "block";
showNextHint(lang, textId);
}

function showSpoiler(obj)
{
var inner = obj.parentNode.getElementsByTagName("div")[0];
if (inner.style.display == "none")
inner.style.display = "";
else
inner.style.display = "none";
}
Loading

0 comments on commit 760597a

Please sign in to comment.