From 181935b97f0b8779ece899b18f276500523e105d Mon Sep 17 00:00:00 2001 From: Mimuuu Date: Thu, 22 May 2014 17:32:54 -0700 Subject: [PATCH 01/19] Initial commit --- LICENSE | 21 +++++++++++++++++++++ README.md | 4 ++++ 2 files changed, 25 insertions(+) create mode 100644 LICENSE create mode 100644 README.md diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ef010dd --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014 Mimuuu + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..b84aaec --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +Archeage-Skills-Calculator +========================== + +A pure php/javascript skill calculator for the game Archeage. Very easy to implement (only 1 line basically) and use. From dfe1868461c51467b28a03c3c64cf4358110ca39 Mon Sep 17 00:00:00 2001 From: Mimuuu Date: Fri, 23 May 2014 02:34:35 +0200 Subject: [PATCH 02/19] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b84aaec..973a652 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ Archeage-Skills-Calculator ========================== -A pure php/javascript skill calculator for the game Archeage. Very easy to implement (only 1 line basically) and use. +A pure php/javascript skill calculator for the game Archeage. Very easy to implement and to use. From f6f5df65119ebd512a9b15015ab0a6535bb9ade2 Mon Sep 17 00:00:00 2001 From: Mimuuu Date: Fri, 23 May 2014 02:47:29 +0200 Subject: [PATCH 03/19] Update README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 973a652..0b289c2 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,12 @@ Archeage-Skills-Calculator ========================== A pure php/javascript skill calculator for the game Archeage. Very easy to implement and to use. +A basic webpage is set up at http://s285114191.onlinehome.fr/AASkillsCalculator/. + +###### What's missing ###### +The XML file is currently filled with false content. The same image and description is used for everything. The XML format is described further. + +### Implement the calculator ### +It's very easy, all you need to do is include the PHP file like this: + +require_once 'class/AASkillsCalculator.php'; From 2009b34f63ff678bbad9fe09f123da600af1b447 Mon Sep 17 00:00:00 2001 From: Mimuuu Date: Fri, 23 May 2014 02:48:49 +0200 Subject: [PATCH 04/19] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0b289c2..1a86d23 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,6 @@ The XML file is currently filled with false content. The same image and descript ### Implement the calculator ### It's very easy, all you need to do is include the PHP file like this: -require_once 'class/AASkillsCalculator.php'; +```php +require_once 'class/AASkillsCalculator.php'; +``` From a86d6c3f3b23c0344798e4c542c10583300c9412 Mon Sep 17 00:00:00 2001 From: Mimuuu Date: Fri, 23 May 2014 02:50:45 +0200 Subject: [PATCH 05/19] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1a86d23..6ccc9da 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,11 @@ The XML file is currently filled with false content. The same image and descript ### Implement the calculator ### It's very easy, all you need to do is include the PHP file like this: - ```php require_once 'class/AASkillsCalculator.php'; ``` +Then you call the **getTree()** method. +```php +echo $AASkillsCalculator->getTree(); +``` +After this, you are good to go. From e53836ef74026abc23ca5a04fe9e1abcd85ad880 Mon Sep 17 00:00:00 2001 From: Mimuuu Date: Fri, 23 May 2014 02:52:14 +0200 Subject: [PATCH 06/19] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 6ccc9da..41b4590 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,8 @@ The XML file is currently filled with false content. The same image and descript It's very easy, all you need to do is include the PHP file like this: ```php require_once 'class/AASkillsCalculator.php'; + + ``` Then you call the **getTree()** method. ```php From 007c258e3cf01e24d4661336fad2bda654f8f3af Mon Sep 17 00:00:00 2001 From: Mimuuu Date: Fri, 23 May 2014 02:53:15 +0200 Subject: [PATCH 07/19] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 41b4590..fe67271 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,8 @@ A basic webpage is set up at http://s285114191.onlinehome.fr/AASkillsCalculator/ The XML file is currently filled with false content. The same image and description is used for everything. The XML format is described further. ### Implement the calculator ### -It's very easy, all you need to do is include the PHP file like this: -```php +It's very easy, all you need to do is include the PHP file, the JS file and the CSS file. +``` require_once 'class/AASkillsCalculator.php'; From a13290ad424373b437552b74c1731b42ffe4141d Mon Sep 17 00:00:00 2001 From: Mimuuu Date: Fri, 23 May 2014 02:54:08 +0200 Subject: [PATCH 08/19] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fe67271..cd46a20 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ The XML file is currently filled with false content. The same image and descript ### Implement the calculator ### It's very easy, all you need to do is include the PHP file, the JS file and the CSS file. -``` +```php require_once 'class/AASkillsCalculator.php'; From 93e7dd2cb6444a6b261df0344b80b335992f468b Mon Sep 17 00:00:00 2001 From: Mimuuu Date: Fri, 23 May 2014 02:54:23 +0200 Subject: [PATCH 09/19] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index cd46a20..c116415 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ The XML file is currently filled with false content. The same image and descript It's very easy, all you need to do is include the PHP file, the JS file and the CSS file. ```php require_once 'class/AASkillsCalculator.php'; + ``` From 1c8eaf2303f9ed9df5c96c3f6349f0b1cb32a580 Mon Sep 17 00:00:00 2001 From: Mimuuu Date: Fri, 23 May 2014 02:57:55 +0200 Subject: [PATCH 10/19] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c116415..67be39b 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,10 @@ Archeage-Skills-Calculator A pure php/javascript skill calculator for the game Archeage. Very easy to implement and to use. A basic webpage is set up at http://s285114191.onlinehome.fr/AASkillsCalculator/. +The PHP file is used to create the basic setup, the 3 lists, the button and the hidden content. The JS file takes care of every interaction, create the link and also read the - if existed - parameter and display the page accordingly. + +Nothing but pure PHP / JS was used because it is not a big project and so you can use it without loading / installing anything else. + ###### What's missing ###### The XML file is currently filled with false content. The same image and description is used for everything. The XML format is described further. @@ -15,7 +19,7 @@ require_once 'class/AASkillsCalculator.php'; ``` -Then you call the **getTree()** method. +Then you call the **getTree()** method to generate the 3 lists and everything, afterwards the JS file takes care of everything. ```php echo $AASkillsCalculator->getTree(); ``` From 7cb924373b73aa9e480236c17a304edd03958654 Mon Sep 17 00:00:00 2001 From: Mimuuu Date: Fri, 23 May 2014 02:59:42 +0200 Subject: [PATCH 11/19] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 67be39b..22d85e2 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A basic webpage is set up at http://s285114191.onlinehome.fr/AASkillsCalculator/ The PHP file is used to create the basic setup, the 3 lists, the button and the hidden content. The JS file takes care of every interaction, create the link and also read the - if existed - parameter and display the page accordingly. -Nothing but pure PHP / JS was used because it is not a big project and so you can use it without loading / installing anything else. +Nothing but pure PHP / JS was used in order to use it the easiest way possible, without having to deal with any framework. ###### What's missing ###### The XML file is currently filled with false content. The same image and description is used for everything. The XML format is described further. From 906c8a6e117efd66bda8f8d673b1182c678daf20 Mon Sep 17 00:00:00 2001 From: Mimuuu Date: Fri, 23 May 2014 03:00:03 +0200 Subject: [PATCH 12/19] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 22d85e2..081b482 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Nothing but pure PHP / JS was used in order to use it the easiest way possible, ###### What's missing ###### The XML file is currently filled with false content. The same image and description is used for everything. The XML format is described further. -### Implement the calculator ### +# Implement the calculator # It's very easy, all you need to do is include the PHP file, the JS file and the CSS file. ```php require_once 'class/AASkillsCalculator.php'; From 4ec3401ca3b41e0fd962a862da74f5383e6e61a9 Mon Sep 17 00:00:00 2001 From: Mimuuu Date: Fri, 23 May 2014 03:00:15 +0200 Subject: [PATCH 13/19] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 081b482..15edce8 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Nothing but pure PHP / JS was used in order to use it the easiest way possible, ###### What's missing ###### The XML file is currently filled with false content. The same image and description is used for everything. The XML format is described further. -# Implement the calculator # +## Implement the calculator ## It's very easy, all you need to do is include the PHP file, the JS file and the CSS file. ```php require_once 'class/AASkillsCalculator.php'; From fb7eeaea472865ffecb9b5b5ee5a001bbb19f315 Mon Sep 17 00:00:00 2001 From: Mimuuu Date: Fri, 23 May 2014 03:21:06 +0200 Subject: [PATCH 14/19] Update README.md --- README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 15edce8..a92d79d 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,21 @@ The PHP file is used to create the basic setup, the 3 lists, the button and the Nothing but pure PHP / JS was used in order to use it the easiest way possible, without having to deal with any framework. -###### What's missing ###### +##### What's missing ##### The XML file is currently filled with false content. The same image and description is used for everything. The XML format is described further. +## How the files work ## +#### PHP file #### +Read the XML and return the HTML code of the calculator. +#### JS file #### +Everything is in one file so it's easier to implement, however the code inside the file is divided into several parts so it's still easy to read and edit: +* **Lists related** - Functions related to the "select" lists. +* **Skills related** - Functions related to anything that touches specific skills (highlight selected skills, display details, ...). +* **Points related** - Functions related to the points count. +* **URL/Skills related** - Functions related to the creation of the link, and reading the parameter to display a specific build. + +It is also worth mentioning that the **parentNode** / **childNodes** combination has been abused a lot, so changing casually the HTML would most likely break the entire thing. + ## Implement the calculator ## It's very easy, all you need to do is include the PHP file, the JS file and the CSS file. ```php @@ -23,4 +35,3 @@ Then you call the **getTree()** method to generate the 3 lists and everything, a ```php echo $AASkillsCalculator->getTree(); ``` -After this, you are good to go. From a45b999b816cf62c172eaa9a62060cb1a6ad07d1 Mon Sep 17 00:00:00 2001 From: Mimuuu Date: Fri, 23 May 2014 03:27:20 +0200 Subject: [PATCH 15/19] Update README.md --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index a92d79d..72417be 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,35 @@ Everything is in one file so it's easier to implement, however the code inside t It is also worth mentioning that the **parentNode** / **childNodes** combination has been abused a lot, so changing casually the HTML would most likely break the entire thing. +#### XML file #### +The XML is build that way: +```xml + + + + + + Value + [...] + Value + Lorem ipsum dolor sit amet, consectetur --b--adipiscing elit++b++. Phasellus in vehicula tellus, rutrum bibendum leo. Maecenas quis eleifend risus. Vestibulum --b--cursus++b++ leo sed fermentum vulputate.. + + [...] + + + + Value + [...] + Value + Lorem ipsum dolor sit amet, consectetur --b--adipiscing elit++b++. Phasellus in vehicula tellus, rutrum bibendum leo. Maecenas quis eleifend risus. Vestibulum --b--cursus++b++ leo sed fermentum vulputate.. + + [...] + + + [...] + +``` + ## Implement the calculator ## It's very easy, all you need to do is include the PHP file, the JS file and the CSS file. ```php From 0e5e47a359952f14d7b8593c6edf463a57940b0c Mon Sep 17 00:00:00 2001 From: Mimuuu Date: Fri, 23 May 2014 03:30:52 +0200 Subject: [PATCH 16/19] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 72417be..bd0e7d5 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,8 @@ The XML is build that way: [...] ``` +You probably notice a custom tag: +* **--b-- / ++b++ : It is render as BOLD in the page. ## Implement the calculator ## It's very easy, all you need to do is include the PHP file, the JS file and the CSS file. From e8066948e6878e3f4fbbbc99584b25a16c4ff040 Mon Sep 17 00:00:00 2001 From: Mimuuu Date: Fri, 23 May 2014 03:31:12 +0200 Subject: [PATCH 17/19] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bd0e7d5..1e2a3c1 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ The XML is build that way: ``` You probably notice a custom tag: -* **--b-- / ++b++ : It is render as BOLD in the page. +* **--b-- / ++b++** : It is render as BOLD in the page. ## Implement the calculator ## It's very easy, all you need to do is include the PHP file, the JS file and the CSS file. From 2d56cee794ed6815c8a8ca70e9ed46479c8c1037 Mon Sep 17 00:00:00 2001 From: Mimuuu Date: Fri, 23 May 2014 03:31:41 +0200 Subject: [PATCH 18/19] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1e2a3c1..d7a0814 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ The XML is build that way: ``` You probably notice a custom tag: -* **--b-- / ++b++** : It is render as BOLD in the page. +* **--b-- / ++b++** : It is rendered as BOLD in the page. ## Implement the calculator ## It's very easy, all you need to do is include the PHP file, the JS file and the CSS file. From a9f4260c8903633d92896537db3eacc1c2200946 Mon Sep 17 00:00:00 2001 From: Mimuuu Date: Fri, 23 May 2014 03:36:15 +0200 Subject: [PATCH 19/19] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d7a0814..47662cd 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Archeage-Skills-Calculator A pure php/javascript skill calculator for the game Archeage. Very easy to implement and to use. A basic webpage is set up at http://s285114191.onlinehome.fr/AASkillsCalculator/. -The PHP file is used to create the basic setup, the 3 lists, the button and the hidden content. The JS file takes care of every interaction, create the link and also read the - if existed - parameter and display the page accordingly. +The PHP file is used to create the basic setup, the 3 lists, the button and the hidden content. The JS file takes care of every interaction, create the link and also read the - if existed - URL parameter and display the page accordingly. Nothing but pure PHP / JS was used in order to use it the easiest way possible, without having to deal with any framework.