Gitlab CSE Unil
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
M. Chardon
CryptoLab
Commits
dd224bab
Commit
dd224bab
authored
Jan 23, 2018
by
M. Chardon
Browse files
ajout lib mutualisées
parent
9631c7c1
Changes
7
Show whitespace changes
Inline
Side-by-side
alea/games.html
View file @
dd224bab
...
@@ -6,13 +6,13 @@
...
@@ -6,13 +6,13 @@
<meta
name=
"description"
content=
"Free Web tool for guess data"
/>
<meta
name=
"description"
content=
"Free Web tool for guess data"
/>
<meta
name=
"keywords"
content=
"Cipher, Bigdata, Guess"
/>
<meta
name=
"keywords"
content=
"Cipher, Bigdata, Guess"
/>
<meta
charset=
"UTF-8"
/>
<meta
charset=
"UTF-8"
/>
<link
rel=
"stylesheet"
href=
"
j
s/bootstrap/bootstrap.min.css"
/>
<link
rel=
"stylesheet"
href=
"
../node_module
s/bootstrap
3/dist/css
/bootstrap.min.css"
/>
<link
rel=
"stylesheet"
href=
"
js/bootstrap
/dashboard.css"
/>
<link
rel=
"stylesheet"
href=
"
css
/dashboard.css"
/>
<link
rel=
"stylesheet"
href=
"
js/bootstrap
/font-awesome.min.css"
/>
<link
rel=
"stylesheet"
href=
"
../node_modules/font-awesome/css
/font-awesome.min.css"
/>
<link
rel=
"stylesheet"
href=
"
js/bootstrap
/logo_unil.css"
/>
<link
rel=
"stylesheet"
href=
"
../css
/logo_unil.css"
/>
<link
rel=
"stylesheet"
href=
"../css/main.css"
/>
<link
rel=
"stylesheet"
href=
"../css/main.css"
/>
<script
src=
"
j
s/jquery/jquery
-3.2.1
.min.js"
></script>
<script
src=
"
../node_module
s/jquery/
dist/
jquery.min.js"
></script>
<script
src=
"
j
s/bootstrap/bootstrap.min.js"
></script>
<script
src=
"
../node_module
s/bootstrap
3/dist/js
/bootstrap.min.js"
></script>
<script
src=
"js/crypto/asmcrypto.js"
></script>
<script
src=
"js/crypto/asmcrypto.js"
></script>
<script
src=
"js/controleur.js"
></script>
<script
src=
"js/controleur.js"
></script>
<script
src=
"js/entities/global.js"
></script>
<script
src=
"js/entities/global.js"
></script>
...
@@ -24,6 +24,14 @@
...
@@ -24,6 +24,14 @@
<script
src=
"js/graph/d3.v4.min.js"
></script>
<script
src=
"js/graph/d3.v4.min.js"
></script>
<script
src=
"js/graph/gauge.js"
></script>
<script
src=
"js/graph/gauge.js"
></script>
<script
src=
"js/graph.js"
></script>
<script
src=
"js/graph.js"
></script>
<script
src=
"../js/jquery.i18n/libs/CLDRPluralRuleParser/src/CLDRPluralRuleParser.js"
></script>
<script
src=
"../js/jquery.i18n/jquery.i18n/src/jquery.i18n.js"
></script>
<script
src=
"../js/jquery.i18n/jquery.i18n/src/jquery.i18n.messagestore.js"
></script>
<script
src=
"../js/jquery.i18n/jquery.i18n/src/jquery.i18n.fallbacks.js"
></script>
<script
src=
"../js/jquery.i18n/jquery.i18n/src/jquery.i18n.parser.js"
></script>
<script
src=
"../js/jquery.i18n/jquery.i18n/src/jquery.i18n.emitter.js"
></script>
<script
src=
"../js/jquery.i18n/jquery.i18n/src/jquery.i18n.language.js"
></script>
<script
src=
"js/languages.js"
></script>
</head>
</head>
<body>
<body>
<nav
class=
"navbar navbar-inverse navbar-fixed-top"
role=
"navigation"
>
<nav
class=
"navbar navbar-inverse navbar-fixed-top"
role=
"navigation"
>
...
@@ -39,6 +47,8 @@
...
@@ -39,6 +47,8 @@
</div>
</div>
<div
id=
"navbar"
class=
"navbar-collapse collapse"
>
<div
id=
"navbar"
class=
"navbar-collapse collapse"
>
<ul
class=
"nav navbar-nav navbar-right"
>
<ul
class=
"nav navbar-nav navbar-right"
>
<li><a
onclick=
"initLang('en');"
><img
style=
"background: white; height:25px;"
alt=
"English"
src=
"../img/flags/english.png"
/></a></li>
<li><a
onclick=
"initLang('fr');"
><img
style=
"background: white;height:25px;"
alt=
"Français"
src=
"../img/flags/french.png"
/></a></li>
<li><a
href=
"help.html"
>
Help
</a></li>
<li><a
href=
"help.html"
>
Help
</a></li>
</ul>
</ul>
</div>
</div>
...
...
alea/i18n/en.json
View file @
dd224bab
{
{
"title"
:
"Vigenère cipher"
,
"title"
:
"Vigenère cipher"
"menu_encryption"
:
"Encryption"
,
"menu_decryption"
:
"Decryption"
,
"menu_help"
:
"Help"
,
"btn_ic"
:
"IC"
,
"btn_ic_legend"
:
"Index of coincidence"
,
"lib_ic_by_column"
:
"IC by columns"
,
"nbre_colmn"
:
"Number of columns"
,
"btn_copy"
:
"Copy text"
,
"btn_send"
:
"Send text"
,
"btn_load"
:
"Load"
,
"btn_search"
:
"Search"
,
"btn_next"
:
"Next"
,
"btn_validate"
:
"Validate"
,
"btn_cancel"
:
"Cancel"
,
"btn_close"
:
"Close"
,
"btn_gcd_freq"
:
"Show GCD frequencies"
,
"see_more_details"
:
"See more details"
,
"see_less_details"
:
"See less details"
,
"show_all_text"
:
"Show all text"
,
"show_less_text"
:
"Show less"
,
"example"
:
"Examples to load"
,
"info"
:
"Info:"
,
"key"
:
"Key"
,
"local_shift"
:
"Local shift"
,
"globalshift"
:
"Globalshift"
,
"intermediaire_key"
:
"Intermediate Key"
,
"final_key"
:
"Final Key"
,
"base_key"
:
"Base Key"
,
"select_language"
:
"Select a language"
,
"choose_language_before"
:
"Choose a language before"
,
"encrypt_title_sub1"
:
"Original text"
,
"encrypt_title_step1"
:
"Step 1: Raw text"
,
"encrypt_title_step1_textarea_placeholder"
:
"Put your text here..."
,
"encrypt_title_step1_btn_normalize"
:
"Normalize"
,
"encrypt_title_step2"
:
"Step 2: Plaintext"
,
"encrypt_title_step2_btn_normalize"
:
"Normalize raw text"
,
"encrypt_title_sub2"
:
"Encrypted message"
,
"encrypt_title_step3"
:
"Step 3: Encryption"
,
"encrypt_title_step3_key"
:
"Key"
,
"encrypt_title_step3_input_placeholder"
:
"Put the key here..."
,
"encrypt_title_step3_btn_encrypt"
:
"Encrypt"
,
"encrypt_title_step3_encrypt_sub1"
:
"Encrypted text"
,
"encrypt_title_step3_encrypt_sub2"
:
"Encrypted text by columns"
,
"encrypt_popup_ic_title"
:
"Calculating the index of coincidence"
,
"encrypt_popup_ic_res"
:
"IC is"
,
"encrypt_popup_ic_lettre_occ"
:
"Number of occurrences for each letter:"
,
"encrypt_popup_ic_nb_lettre"
:
"Number of letters"
,
"encrypt_popup_ic_graph_limit_language"
:
"Limit natural language"
,
"encrypt_popup_vigi_square_title"
:
"The Vigenère square"
,
"decrypt_hide_panel"
:
"Show/hide Data result panel"
,
"decrypt_sub1_title"
:
"Data & Results"
,
"decrypt_sub1_sub1_title"
:
"Encrypted message"
,
"decrypt_sub1_sub2_title"
:
"Cleartext"
,
"decrypt_sub1_sub1_encrypt_mess"
:
"Encrypted message"
,
"decrypt_sub1_sub1_textarea"
:
"Put your encrypted text here..."
,
"decrypt_sub1_sub2_key_length"
:
"Key length"
,
"decrypt_sub1_sub2_key_final"
:
"Final Key"
,
"decrypt_sub1_sub2_cleartext"
:
"Cleartext"
,
"decrypt_sub2_title"
:
"Operations"
,
"decrypt_sub2_sub1_title"
:
"Step 1: Length of the key"
,
"decrypt_sub2_sub1_goal"
:
"The goal is to find the length of the key. Two options can be used:"
,
"decrypt_sub2_sub1_kasiski"
:
"Kasiski"
,
"decrypt_sub2_sub1_ic"
:
"Index of coincidence"
,
"decrypt_sub2_sub1_final_key"
:
"Final key length"
,
"decrypt_sub2_sub1_final_gcd"
:
"GCD: greatest common divisor"
,
"decrypt_sub2_sub1_kasi_desc"
:
"Select n (repetitive n-grams will be searched for in the encrypted message)"
,
"decrypt_sub2_sub1_kasi_info"
:
"In this exercise, for design reasons, only GCD smaller than 25 are shown"
,
"decrypt_sub2_sub1_kasi_tab_col1"
:
"Pattern"
,
"decrypt_sub2_sub1_kasi_tab_col2"
:
"Occ."
,
"decrypt_sub2_sub1_kasi_tab_col3"
:
"Index Text"
,
"decrypt_sub2_sub1_kasi_tab_col4"
:
"Distances"
,
"decrypt_sub2_sub1_kasi_tab_col5"
:
"GCD"
,
"decrypt_sub2_sub1_kasi_tab_col6"
:
"Dividers"
,
"decrypt_sub2_sub1_ic_legend"
:
"IC: index of coincidence"
,
"decrypt_sub2_sub2_title"
:
"Step 2: Relative Distance"
,
"decrypt_sub2_sub2_desc1"
:
"Fix one column"
,
"decrypt_sub2_sub2_red"
:
"red"
,
"decrypt_sub2_sub2_desc2"
:
"and compare it with the others"
,
"decrypt_sub2_sub2_blue"
:
"blue"
,
"decrypt_sub2_sub2_original_text"
:
"Original encrypted text"
,
"decrypt_sub2_sub2_shifted_text"
:
"Shifted encrypted text"
,
"decrypt_sub2_sub2_validate"
:
"Validate Local shift"
,
"decrypt_sub2_sub2_btn_calculate"
:
"Calculate mutual index of coincidence between the red column and the blue column"
,
"decrypt_sub2_sub2_btn_mic1"
:
"MIC"
,
"decrypt_sub2_sub2_btn_mic2"
:
"for"
,
"decrypt_sub2_sub2_btn_mic3"
:
"and"
,
"decrypt_sub2_sub2_no_validation"
:
"Please specify the key size before accessing this step"
,
"decrypt_sub2_sub3_title"
:
"Step 3: Key and decryption"
,
"decrypt_sub2_sub3_cleartext"
:
"Cleartext"
,
"decrypt_sub2_sub3_btn_mic_legend"
:
"Mutual index of coincidence"
,
"decrypt_sub2_sub3_btn_mic"
:
"MIC"
,
"decrypt_sub2_sub3_select_lang1"
:
"Select one or"
,
"decrypt_sub2_sub3_select_lang2"
:
"more language(s)"
,
"decrypt_sub2_sub3_btn_cleartext"
:
"Get cleartext"
,
"decrypt_sub2_sub3_no_validation"
:
"Please valid the previous step before accessing this one"
,
"decrypt_popup_kasiski_title"
:
"Patterns in text"
,
"decrypt_popup_mic_title"
:
"Comparison of MIC"
,
"decrypt_popup_mic_grap_mic"
:
"MIC"
,
"decrypt_popup_mic_grap_shift"
:
"Shift"
,
"decrypt_popup_pgcd_title"
:
"GCD frenquency"
,
"decrypt_popup_pgcd_grap_occ"
:
"GCD occurence"
,
"decrypt_popup_pgcd_grap_occAxe"
:
"GCD Occurences"
,
"decrypt_popup_pgcd_grap_gcd"
:
"GCD"
,
"decrypt_popup_mictot_title"
:
"MIC comparison with all languages"
,
"decrypt_popup_warning_title"
:
"Warning"
,
"decrypt_popup_warning_desc"
:
"This action will erase the content of the following steps"
,
"decrypt_popup_warning_quest"
:
"Will you continue"
,
"decrypt_popup_help_desc"
:
"Need help? Please refer to the help button on each part:"
,
"Portuguese"
:
"Portuguese"
,
"German"
:
"German"
,
"French"
:
"French"
,
"Italian"
:
"Italian"
,
"Spanish"
:
"Spanish"
,
"English"
:
"English"
,
"Random"
:
"Random"
}
}
\ No newline at end of file
alea/index.html
View file @
dd224bab
...
@@ -185,7 +185,6 @@
...
@@ -185,7 +185,6 @@
</script>
</script>
<script
src=
"../js/main.js"
></script>
<script
src=
"../js/main.js"
></script>
<script
src=
"js/languages.js"
></script>
</body>
</body>
</html>
</html>
alea/pasapas.html
View file @
dd224bab
...
@@ -6,13 +6,13 @@
...
@@ -6,13 +6,13 @@
<meta
name=
"description"
content=
"Free Web tool for guess data"
/>
<meta
name=
"description"
content=
"Free Web tool for guess data"
/>
<meta
name=
"keywords"
content=
"Cipher, Bigdata, Guess"
/>
<meta
name=
"keywords"
content=
"Cipher, Bigdata, Guess"
/>
<meta
charset=
"UTF-8"
/>
<meta
charset=
"UTF-8"
/>
<link
rel=
"stylesheet"
href=
"
j
s/bootstrap/bootstrap.min.css"
/>
<link
rel=
"stylesheet"
href=
"
../node_module
s/bootstrap
3/dist/css
/bootstrap.min.css"
/>
<link
rel=
"stylesheet"
href=
"
js/bootstrap
/dashboard.css"
/>
<link
rel=
"stylesheet"
href=
"
css
/dashboard.css"
/>
<link
rel=
"stylesheet"
href=
"
js/bootstrap
/font-awesome.min.css"
/>
<link
rel=
"stylesheet"
href=
"
../node_modules/font-awesome/css
/font-awesome.min.css"
/>
<link
rel=
"stylesheet"
href=
"
js/bootstrap
/logo_unil.css"
/>
<link
rel=
"stylesheet"
href=
"
../css
/logo_unil.css"
/>
<link
rel=
"stylesheet"
href=
"../css/main.css"
/>
<link
rel=
"stylesheet"
href=
"../css/main.css"
/>
<script
src=
"
j
s/jquery/jquery
-3.2.1
.min.js"
></script>
<script
src=
"
../node_module
s/jquery/
dist/
jquery.min.js"
></script>
<script
src=
"
j
s/bootstrap/bootstrap.min.js"
></script>
<script
src=
"
../node_module
s/bootstrap
3/dist/js
/bootstrap.min.js"
></script>
<script
src=
"js/crypto/asmcrypto.js"
></script>
<script
src=
"js/crypto/asmcrypto.js"
></script>
<script
src=
"js/controleur.js"
></script>
<script
src=
"js/controleur.js"
></script>
<script
src=
"js/entities/global.js"
></script>
<script
src=
"js/entities/global.js"
></script>
...
@@ -23,6 +23,14 @@
...
@@ -23,6 +23,14 @@
<script
src=
"js/entities/resultat.js"
></script>
<script
src=
"js/entities/resultat.js"
></script>
<script
src=
"js/graph/d3.v4.min.js"
></script>
<script
src=
"js/graph/d3.v4.min.js"
></script>
<script
src=
"js/graph.js"
></script>
<script
src=
"js/graph.js"
></script>
<script
src=
"../js/jquery.i18n/libs/CLDRPluralRuleParser/src/CLDRPluralRuleParser.js"
></script>
<script
src=
"../js/jquery.i18n/jquery.i18n/src/jquery.i18n.js"
></script>
<script
src=
"../js/jquery.i18n/jquery.i18n/src/jquery.i18n.messagestore.js"
></script>
<script
src=
"../js/jquery.i18n/jquery.i18n/src/jquery.i18n.fallbacks.js"
></script>
<script
src=
"../js/jquery.i18n/jquery.i18n/src/jquery.i18n.parser.js"
></script>
<script
src=
"../js/jquery.i18n/jquery.i18n/src/jquery.i18n.emitter.js"
></script>
<script
src=
"../js/jquery.i18n/jquery.i18n/src/jquery.i18n.language.js"
></script>
<script
src=
"js/languages.js"
></script>
</head>
</head>
<body>
<body>
<nav
class=
"navbar navbar-inverse navbar-fixed-top"
role=
"navigation"
>
<nav
class=
"navbar navbar-inverse navbar-fixed-top"
role=
"navigation"
>
...
@@ -38,6 +46,8 @@
...
@@ -38,6 +46,8 @@
</div>
</div>
<div
id=
"navbar"
class=
"navbar-collapse collapse"
>
<div
id=
"navbar"
class=
"navbar-collapse collapse"
>
<ul
class=
"nav navbar-nav navbar-right"
>
<ul
class=
"nav navbar-nav navbar-right"
>
<li><a
onclick=
"initLang('en');"
><img
style=
"background: white; height:25px;"
alt=
"English"
src=
"../img/flags/english.png"
/></a></li>
<li><a
onclick=
"initLang('fr');"
><img
style=
"background: white;height:25px;"
alt=
"Français"
src=
"../img/flags/french.png"
/></a></li>
<li><a
href=
"help.html"
>
Help
</a></li>
<li><a
href=
"help.html"
>
Help
</a></li>
</ul>
</ul>
</div>
</div>
...
@@ -155,9 +165,10 @@
...
@@ -155,9 +165,10 @@
function
trigKeyDownInit
(
event
)
{
function
trigKeyDownInit
(
event
)
{
event
.
preventDefault
();
event
.
preventDefault
();
if
(
event
.
which
===
48
)
{
//alert(event.which);
if
(
event
.
which
===
48
||
event
.
which
===
96
)
{
insertVal
(
0
);
insertVal
(
0
);
}
else
if
(
event
.
which
===
49
)
{
}
else
if
(
event
.
which
===
49
||
event
.
which
===
97
)
{
insertVal
(
1
);
insertVal
(
1
);
}
}
}
}
...
...
alea/understand.html
View file @
dd224bab
...
@@ -6,10 +6,10 @@
...
@@ -6,10 +6,10 @@
<meta
name=
"description"
content=
"Free Web tool for guess data"
/>
<meta
name=
"description"
content=
"Free Web tool for guess data"
/>
<meta
name=
"keywords"
content=
"Cipher, Bigdata, Guess"
/>
<meta
name=
"keywords"
content=
"Cipher, Bigdata, Guess"
/>
<meta
charset=
"UTF-8"
/>
<meta
charset=
"UTF-8"
/>
<link
rel=
"stylesheet"
href=
"
j
s/bootstrap/bootstrap.min.css"
/>
<link
rel=
"stylesheet"
href=
"
../node_module
s/bootstrap
3/dist/css
/bootstrap.min.css"
/>
<link
rel=
"stylesheet"
href=
"
js/bootstrap
/dashboard.css"
/>
<link
rel=
"stylesheet"
href=
"
css
/dashboard.css"
/>
<link
rel=
"stylesheet"
href=
"
js/bootstrap
/font-awesome.min.css"
/>
<link
rel=
"stylesheet"
href=
"
../node_modules/font-awesome/css
/font-awesome.min.css"
/>
<link
rel=
"stylesheet"
href=
"
js/bootstrap
/logo_unil.css"
/>
<link
rel=
"stylesheet"
href=
"
../css
/logo_unil.css"
/>
<link
rel=
"stylesheet"
href=
"../css/main.css"
/>
<link
rel=
"stylesheet"
href=
"../css/main.css"
/>
<style>
<style>
...
@@ -24,8 +24,8 @@
...
@@ -24,8 +24,8 @@
}
}
</style>
</style>
<script
src=
"
j
s/jquery/jquery
-3.2.1
.min.js"
></script>
<script
src=
"
../node_module
s/jquery/
dist/
jquery.min.js"
></script>
<script
src=
"
j
s/bootstrap/bootstrap.min.js"
></script>
<script
src=
"
../node_module
s/bootstrap
3/dist/js
/bootstrap.min.js"
></script>
<script
src=
"js/crypto/asmcrypto.js"
></script>
<script
src=
"js/crypto/asmcrypto.js"
></script>
<script
src=
"js/controleur.js"
></script>
<script
src=
"js/controleur.js"
></script>
<script
src=
"js/entities/global.js"
></script>
<script
src=
"js/entities/global.js"
></script>
...
@@ -36,6 +36,14 @@
...
@@ -36,6 +36,14 @@
<script
src=
"js/entities/resultat.js"
></script>
<script
src=
"js/entities/resultat.js"
></script>
<script
src=
"js/graph/d3.v4.min.js"
></script>
<script
src=
"js/graph/d3.v4.min.js"
></script>
<script
src=
"js/graph.js"
></script>
<script
src=
"js/graph.js"
></script>
<script
src=
"../js/jquery.i18n/libs/CLDRPluralRuleParser/src/CLDRPluralRuleParser.js"
></script>
<script
src=
"../js/jquery.i18n/jquery.i18n/src/jquery.i18n.js"
></script>
<script
src=
"../js/jquery.i18n/jquery.i18n/src/jquery.i18n.messagestore.js"
></script>
<script
src=
"../js/jquery.i18n/jquery.i18n/src/jquery.i18n.fallbacks.js"
></script>
<script
src=
"../js/jquery.i18n/jquery.i18n/src/jquery.i18n.parser.js"
></script>
<script
src=
"../js/jquery.i18n/jquery.i18n/src/jquery.i18n.emitter.js"
></script>
<script
src=
"../js/jquery.i18n/jquery.i18n/src/jquery.i18n.language.js"
></script>
<script
src=
"js/languages.js"
></script>
</head>
</head>
<body>
<body>
<nav
class=
"navbar navbar-inverse navbar-fixed-top"
role=
"navigation"
>
<nav
class=
"navbar navbar-inverse navbar-fixed-top"
role=
"navigation"
>
...
@@ -51,6 +59,8 @@
...
@@ -51,6 +59,8 @@
</div>
</div>
<div
id=
"navbar"
class=
"navbar-collapse collapse"
>
<div
id=
"navbar"
class=
"navbar-collapse collapse"
>
<ul
class=
"nav navbar-nav navbar-right"
>
<ul
class=
"nav navbar-nav navbar-right"
>
<li><a
onclick=
"initLang('en');"
><img
style=
"background: white; height:25px;"
alt=
"English"
src=
"../img/flags/english.png"
/></a></li>
<li><a
onclick=
"initLang('fr');"
><img
style=
"background: white;height:25px;"
alt=
"Français"
src=
"../img/flags/french.png"
/></a></li>
<li><a
href=
"help.html"
>
Help
</a></li>
<li><a
href=
"help.html"
>
Help
</a></li>
</ul>
</ul>
</div>
</div>
...
...
alea/understandA.html
View file @
dd224bab
...
@@ -6,10 +6,10 @@
...
@@ -6,10 +6,10 @@
<meta
name=
"description"
content=
"Free Web tool for guess data"
/>
<meta
name=
"description"
content=
"Free Web tool for guess data"
/>
<meta
name=
"keywords"
content=
"Cipher, Bigdata, Guess"
/>
<meta
name=
"keywords"
content=
"Cipher, Bigdata, Guess"
/>
<meta
charset=
"UTF-8"
/>
<meta
charset=
"UTF-8"
/>
<link
rel=
"stylesheet"
href=
"
j
s/bootstrap/bootstrap.min.css"
/>
<link
rel=
"stylesheet"
href=
"
../node_module
s/bootstrap
3/dist/css
/bootstrap.min.css"
/>
<link
rel=
"stylesheet"
href=
"
js/bootstrap
/dashboard.css"
/>
<link
rel=
"stylesheet"
href=
"
css
/dashboard.css"
/>
<link
rel=
"stylesheet"
href=
"
js/bootstrap
/font-awesome.min.css"
/>
<link
rel=
"stylesheet"
href=
"
../node_modules/font-awesome/css
/font-awesome.min.css"
/>
<link
rel=
"stylesheet"
href=
"
js/bootstrap
/logo_unil.css"
/>
<link
rel=
"stylesheet"
href=
"
../css
/logo_unil.css"
/>
<link
rel=
"stylesheet"
href=
"../css/main.css"
/>
<link
rel=
"stylesheet"
href=
"../css/main.css"
/>
<style>
<style>
...
@@ -24,8 +24,8 @@
...
@@ -24,8 +24,8 @@
}
}
</style>
</style>
<script
src=
"
j
s/jquery/jquery
-3.2.1
.min.js"
></script>
<script
src=
"
../node_module
s/jquery/
dist/
jquery.min.js"
></script>
<script
src=
"
j
s/bootstrap/bootstrap.min.js"
></script>
<script
src=
"
../node_module
s/bootstrap
3/dist/js
/bootstrap.min.js"
></script>
<script
src=
"js/crypto/asmcrypto.js"
></script>
<script
src=
"js/crypto/asmcrypto.js"
></script>
<script
src=
"js/controleur.js"
></script>
<script
src=
"js/controleur.js"
></script>
<script
src=
"js/entities/global.js"
></script>
<script
src=
"js/entities/global.js"
></script>
...
@@ -36,6 +36,14 @@
...
@@ -36,6 +36,14 @@
<script
src=
"js/entities/resultat.js"
></script>
<script
src=
"js/entities/resultat.js"
></script>
<script
src=
"js/graph/d3.v4.min.js"
></script>
<script
src=
"js/graph/d3.v4.min.js"
></script>
<script
src=
"js/graph.js"
></script>
<script
src=
"js/graph.js"
></script>
<script
src=
"../js/jquery.i18n/libs/CLDRPluralRuleParser/src/CLDRPluralRuleParser.js"
></script>
<script
src=
"../js/jquery.i18n/jquery.i18n/src/jquery.i18n.js"
></script>
<script
src=
"../js/jquery.i18n/jquery.i18n/src/jquery.i18n.messagestore.js"
></script>
<script
src=
"../js/jquery.i18n/jquery.i18n/src/jquery.i18n.fallbacks.js"
></script>
<script
src=
"../js/jquery.i18n/jquery.i18n/src/jquery.i18n.parser.js"
></script>
<script
src=
"../js/jquery.i18n/jquery.i18n/src/jquery.i18n.emitter.js"
></script>
<script
src=
"../js/jquery.i18n/jquery.i18n/src/jquery.i18n.language.js"
></script>
<script
src=
"js/languages.js"
></script>
</head>
</head>
<body>
<body>
<nav
class=
"navbar navbar-inverse navbar-fixed-top"
role=
"navigation"
>
<nav
class=
"navbar navbar-inverse navbar-fixed-top"
role=
"navigation"
>
...
@@ -51,6 +59,8 @@
...
@@ -51,6 +59,8 @@
</div>
</div>
<div
id=
"navbar"
class=
"navbar-collapse collapse"
>
<div
id=
"navbar"
class=
"navbar-collapse collapse"
>
<ul
class=
"nav navbar-nav navbar-right"
>
<ul
class=
"nav navbar-nav navbar-right"
>
<li><a
onclick=
"initLang('en');"
><img
style=
"background: white; height:25px;"
alt=
"English"
src=
"../img/flags/english.png"
/></a></li>
<li><a
onclick=
"initLang('fr');"
><img
style=
"background: white;height:25px;"
alt=
"Français"
src=
"../img/flags/french.png"
/></a></li>
<li><a
href=
"help.html"
>
Help
</a></li>
<li><a
href=
"help.html"
>
Help
</a></li>
</ul>
</ul>
</div>
</div>
...
...
js/main.js
View file @
dd224bab
...
@@ -3,13 +3,13 @@ initFooter();
...
@@ -3,13 +3,13 @@ initFooter();
function
initFooter
(
lang
=
'
en
'
)
{
function
initFooter
(
lang
=
'
en
'
)
{
//var lang = navigator.language || navigator.userLanguage;
//var lang = navigator.language || navigator.userLanguage;
if
(
lang
!==
'
en
'
)
{
if
(
lang
!==
'
en
'
)
{
$
(
"
#contacts
"
).
load
(
"
/crypto
/block/contact_
"
+
lang
+
"
.html
"
);
$
(
"
#contacts
"
).
load
(
"
..
/block/contact_
"
+
lang
+
"
.html
"
);
$
(
"
#credits
"
).
load
(
"
/crypto
/block/credit_
"
+
lang
+
"
.html
"
);
$
(
"
#credits
"
).
load
(
"
..
/block/credit_
"
+
lang
+
"
.html
"
);
$
(
"
.footer
"
).
load
(
"
/crypto
/block/footer_
"
+
lang
+
"
.html
"
);
$
(
"
.footer
"
).
load
(
"
..
/block/footer_
"
+
lang
+
"
.html
"
);
}
else
{
}
else
{
$
(
"
#contacts
"
).
load
(
"
/crypto
/block/contact.html
"
);
$
(
"
#contacts
"
).
load
(
"
..
/block/contact.html
"
);
$
(
"
#credits
"
).
load
(
"
/crypto
/block/credit.html
"
);
$
(
"
#credits
"
).
load
(
"
..
/block/credit.html
"
);
$
(
"
.footer
"
).
load
(
"
/crypto
/block/footer.html
"
);
$
(
"
.footer
"
).
load
(
"
..
/block/footer.html
"
);
}
}
initLang
(
lang
);
initLang
(
lang
);
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment