Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tutoriel:script_shell [Le 28/02/2024, 22:59] – [Liens] 105.74.9.77 | tutoriel:script_shell [Le 24/04/2026, 14:08] (Version actuelle) – [La structure : `if`] note [] vs [[]] bcag2 | ||
|---|---|---|---|
| Ligne 5: | Ligne 5: | ||
| ====== Introduction aux scripts shell ====== | ====== Introduction aux scripts shell ====== | ||
| - | Un script shell permet d' | + | Un script shell permet d' |
| <code bash> | <code bash> | ||
| #!/bin/bash | #!/bin/bash | ||
| Ligne 112: | Ligne 112: | ||
| ===== Les variables ===== | ===== Les variables ===== | ||
| - | Il faut savoir | + | Il faut savoir |
| Cela dépendra de son USAGE, pour une opération arithmétique prochaine voir : let ma_variable sinon pour conserver une valeur : | Cela dépendra de son USAGE, pour une opération arithmétique prochaine voir : let ma_variable sinon pour conserver une valeur : | ||
| il suffit de lui donner un nom et une valeur avec l' | il suffit de lui donner un nom et une valeur avec l' | ||
| Ligne 252: | Ligne 252: | ||
| echo "Bien joué !" | echo "Bien joué !" | ||
| else | else | ||
| - | echo "Non mais quand même !!! SAPERLIPOPETTE | + | echo "Non mais quand même !!! C' |
| - | sleep 3 # Juste pour le fun du script qui enrage | + | sleep 3 # Juste pour le fun du script qui rage ;-p |
| - | echo "Désolé, | + | echo "Donc je te bannis de ubuntu-fr.org ! Et toc !! Tu ne peux rien contre moi !!!" |
| exit 1 | exit 1 | ||
| fi | fi | ||
| Ligne 266: | Ligne 266: | ||
| Exemple: besoin de définir des plages de valeurs (1 à 500 puis 501 à 1000 puis 1001 à 1500…) | Exemple: besoin de définir des plages de valeurs (1 à 500 puis 501 à 1000 puis 1001 à 1500…) | ||
| <code bash> | <code bash> | ||
| - | id_per_step = 500 | + | id_per_step=500 |
| for (( i=0; i<8; i++ )); do | for (( i=0; i<8; i++ )); do | ||
| (( min_step_id = 1 + $i * $id_per_step )) | (( min_step_id = 1 + $i * $id_per_step )) | ||
| Ligne 284: | Ligne 284: | ||
| ^ Syntaxe ^ Fonction réalisée ^ | ^ Syntaxe ^ Fonction réalisée ^ | ||
| - | | -e fichier | + | | -e fichier |
| - | | -d fichier | + | | -d répertoire |
| - | | -f fichier | + | | -f fichier |
| - | | -w fichier | + | | -w fichier |
| - | | -x fichier | + | | -x fichier |
| - | | f1 -nt f2 | + | | f1 -nt f2 |
| - | | f1 -ot f2 | + | | f1 -ot f2 |
| + | <note tip>Si vous préférez vérifier que votre // | ||
| === Opérateurs de comparaison numérique === | === Opérateurs de comparaison numérique === | ||
| Ligne 385: | Ligne 386: | ||
| ls -la | ls -la | ||
| elif [ " | elif [ " | ||
| - | echo " | + | echo " |
| else | else | ||
| echo "Il faut taper Y ou N!! Pas $ouinon" | echo "Il faut taper Y ou N!! Pas $ouinon" | ||
| fi | fi | ||
| </ | </ | ||
| + | <note tip> | ||
| + | Les crochets simples [] correspondent à des tests de condition conformes au shell POSIX.\\ | ||
| + | Les doubles permettent d' | ||
| + | Préférez les crochets simples pour une meilleure compatibilité. | ||
| + | </ | ||
| === Explication === | === Explication === | ||
| Ligne 413: | Ligne 418: | ||
| Exemple : | Exemple : | ||
| - | créer le répertoire | + | créer le répertoire |
| <code bash> | <code bash> | ||
| - | [ ! -d /tmp/titi ] && mkdir /tmp/titi | + | [ ! -d /tmp/toto ] && mkdir /tmp/toto |
| - | [ -d /tmp/titi ] || mkdir /tmp/titi | + | [ -d /tmp/toto ] || mkdir /tmp/toto |
| - | test ! -d /tmp/titi && mkdir /tmp/titi | + | test ! -d /tmp/toto && mkdir /tmp/toto |
| - | rm -rf /tmp/titi;mkdir /tmp/titi | + | rm -rf /tmp/toto;mkdir /tmp/toto |
| </ | </ | ||
| Ligne 535: | Ligne 540: | ||
| | | ||
| case " | case " | ||
| - | oui | o | O | Oui | OUI ) echo " | + | oui | o | O | Oui | OUI ) echo " |
| non | n | N | Non | NON ) echo " | non | n | N | Non | NON ) echo " | ||
| * ) echo "Ah bon ?";; | * ) echo "Ah bon ?";; | ||
| Ligne 547: | Ligne 552: | ||
| <code bash> | <code bash> | ||
| case " | case " | ||
| - | [nN] *) echo "Blablablabla...";; | + | [nN] *) echo "Blablabla...";; |
| n* | N* ) echo " | n* | N* ) echo " | ||
| </ | </ | ||
| Ligne 732: | Ligne 737: | ||
| # | # | ||
| if [ ${LANG:0:2} = " | if [ ${LANG:0:2} = " | ||
| - | echo "Vous aimez la choucroute | + | echo "Vous aimez les moules frites |
| elif [ ${LANG:0:2} = " | elif [ ${LANG:0:2} = " | ||
| - | echo "You love the... | + | echo "You love the... |
| elif [ ${LANG:0:2} = " | elif [ ${LANG:0:2} = " | ||
| - | echo "Te gusta el pata negra !" | + | echo "Te gusta el jamón |
| else | else | ||
| echo ":' | echo ":' | ||
| Ligne 745: | Ligne 750: | ||
| <code bash> | <code bash> | ||
| $ ./ | $ ./ | ||
| - | Vous aimez la choucroute | + | Vous aimez les moules frites |
| $ env LANG=en ./ | $ env LANG=en ./ | ||
| - | You love the... | + | You love the... |
| $ env LANG=es ./ | $ env LANG=es ./ | ||
| - | Te gusta el pata negra! | + | Te gusta el jamón |
| $ env LANG=it ./ | $ env LANG=it ./ | ||
| :'-( | :'-( | ||
| Ligne 826: | Ligne 831: | ||
| <code bash> | <code bash> | ||
| - | echo -e ' | + | echo -e ' |
| </ | </ | ||
| Ligne 877: | Ligne 882: | ||
| Exemple : | Exemple : | ||
| supposons que vous ayez une base de données, avec 3 catégories d' | supposons que vous ayez une base de données, avec 3 catégories d' | ||
| - | canard | + | éléphant |
| Votre script doit compter le nombre d' | Votre script doit compter le nombre d' | ||
| Deux possibilités s' | Deux possibilités s' | ||
| - | * calculer le nombre | + | * calculer le nombre |
| ou | ou | ||
| - | * calculer le nombre total de canard | + | * calculer le nombre total d' |
| Quel algorithme choisissez-vous ? | Quel algorithme choisissez-vous ? | ||
| - | Résultat : le premier car dans le deuxième il faut d' | + | Résultat : le premier car dans le deuxième il faut d' |
| - | < | + | ===== Liens ===== |
| - | <html lang=" | + | |
| - | < | + | * (fr) https:// |
| - | < | + | * (fr) [[https:// |
| + | * (fr) https:// | ||
| + | * (en) [[http:// | ||
| + | * (fr ) [[ftp:// | ||
| + | * (fr ) [[http:// | ||
| + | * (en) [[https:// | ||
| - | <!-- Meta Tags --> | + | ---- |
| - | <meta charset=" | + | |
| - | <meta name=" | + | |
| - | <meta name=" | + | |
| - | < | + | // |
| - | + | ||
| - | const storedTheme = localStorage.getItem(' | + | |
| - | + | ||
| - | const getPreferredTheme = () => { | + | |
| - | if (storedTheme) { | + | |
| - | return storedTheme | + | |
| - | } | + | |
| - | return window.matchMedia(' | + | |
| - | } | + | |
| - | + | ||
| - | const setTheme = function (theme) { | + | |
| - | if (theme === ' | + | |
| - | document.documentElement.setAttribute(' | + | |
| - | } else { | + | |
| - | document.documentElement.setAttribute(' | + | |
| - | } | + | |
| - | } | + | |
| - | + | ||
| - | setTheme(getPreferredTheme()) | + | |
| - | + | ||
| - | window.addEventListener(' | + | |
| - | var el = document.querySelector(' | + | |
| - | if (el != ' | + | |
| - | const showActiveTheme = theme => { | + | |
| - | const activeThemeIcon = document.querySelector(' | + | |
| - | const btnToActive = document.querySelector(`[data-bs-theme-value=" | + | |
| - | const svgOfActiveBtn = btnToActive.querySelector(' | + | |
| - | + | ||
| - | document.querySelectorAll(' | + | |
| - | element.classList.remove(' | + | |
| - | }) | + | |
| - | + | ||
| - | btnToActive.classList.add(' | + | |
| - | activeThemeIcon.setAttribute(' | + | |
| - | } | + | |
| - | + | ||
| - | window.matchMedia(' | + | |
| - | if (storedTheme !== ' | + | |
| - | setTheme(getPreferredTheme()) | + | |
| - | } | + | |
| - | }) | + | |
| - | + | ||
| - | showActiveTheme(getPreferredTheme()) | + | |
| - | + | ||
| - | document.querySelectorAll(' | + | |
| - | .forEach(toggle => { | + | |
| - | toggle.addEventListener(' | + | |
| - | const theme = toggle.getAttribute(' | + | |
| - | localStorage.setItem(' | + | |
| - | setTheme(theme) | + | |
| - | showActiveTheme(theme) | + | |
| - | }) | + | |
| - | }) | + | |
| - | + | ||
| - | } | + | |
| - | }) | + | |
| - | + | ||
| - | </ | + | |
| - | + | ||
| - | <!-- Favicon --> | + | |
| - | <link rel=" | + | |
| - | + | ||
| - | <!-- Google Font --> | + | |
| - | <link rel=" | + | |
| - | <link rel=" | + | |
| - | <link rel=" | + | |
| - | + | ||
| - | <!-- Plugins CSS --> | + | |
| - | <link rel=" | + | |
| - | <link rel=" | + | |
| - | <link rel=" | + | |
| - | <link rel=" | + | |
| - | <link rel=" | + | |
| - | <link rel=" | + | |
| - | + | ||
| - | <!-- Theme CSS --> | + | |
| - | <link rel=" | + | |
| - | <link rel=" | + | |
| - | + | ||
| - | <link rel=" | + | |
| - | + | ||
| - | <link rel=" | + | |
| - | + | ||
| - | + | ||
| - | <link rel=" | + | |
| - | <link rel=" | + | |
| - | + | ||
| - | < | + | |
| - | </ | + | |
| - | <script src="/ | + | |
| - | <script src="/ | + | |
| - | <script src="/ | + | |
| - | <script src="/ | + | |
| - | <script type=" | + | |
| - | < | + | |
| - | $.ajaxSetup({ | + | |
| - | beforeSend: function (xhr, options) { | + | |
| - | if (options.type.toUpperCase() == " | + | |
| - | xhr.setRequestHeader(" | + | |
| - | } | + | |
| - | + | ||
| - | } | + | |
| - | }); | + | |
| - | </ | + | |
| - | </ | + | |
| - | < | + | |
| - | <div class=" | + | |
| - | <div class=" | + | |
| - | <div class=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | <div id=" | + | |
| - | <div class=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | <header class=" | + | |
| - | <!-- Nav START --> | + | |
| - | <nav class=" | + | |
| - | <div class=" | + | |
| - | <!-- Logo START --> | + | |
| - | <a class=" | + | |
| - | <img class=" | + | |
| - | <img class=" | + | |
| - | </ | + | |
| - | <!-- Logo END --> | + | |
| - | <!-- Responsive navbar toggler --> | + | |
| - | <button class=" | + | |
| - | <i class=" | + | |
| - | </ | + | |
| - | + | ||
| - | <!-- Responsive navbar toggler --> | + | |
| - | <button class=" | + | |
| - | <span class=" | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| - | </ | + | |
| - | + | ||
| - | <!-- Main navbar START --> | + | |
| - | <div class=" | + | |
| - | <div class=" | + | |
| - | <div class=" | + | |
| - | <div class=" | + | |
| - | <div class=" | + | |
| - | <div class=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | <div class=" | + | |
| - | <div class=" | + | |
| - | <small class=" | + | |
| - | <ul class=" | + | |
| - | <li class=" | + | |
| - | <li class=" | + | |
| - | <li class=" | + | |
| - | <li class=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | + | ||
| - | <!-- Main navbar END --> | + | |
| - | <!-- Profile and notification START --> | + | |
| - | <ul class=" | + | |
| - | <li class=" | + | |
| - | <a class=" | + | |
| - | <img class=" | + | |
| - | </ | + | |
| - | <ul class=" | + | |
| - | <li> <a class=" | + | |
| - | <li> <a class=" | + | |
| - | <li> <a class=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | <li class=" | + | |
| - | <!-- Avatar --> | + | |
| - | <a class=" | + | |
| - | <img onerror=" | + | |
| - | </ | + | |
| - | + | ||
| - | <!-- Profile dropdown START --> | + | |
| - | <ul class=" | + | |
| - | <!-- Profile info --> | + | |
| - | <li class=" | + | |
| - | <div class=" | + | |
| - | <!-- Avatar --> | + | |
| - | <div class=" | + | |
| - | <img onerror=" | + | |
| - | + | ||
| - | </ | + | |
| - | < | + | |
| - | <a class=" | + | |
| - | <p class=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | + | ||
| - | <!-- Links --> | + | |
| - | <li> <hr class=" | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | <li> <hr class=" | + | |
| - | + | ||
| - | <!-- Dark mode options START --> | + | |
| - | <!-- Dark mode options END--> | + | |
| - | </ | + | |
| - | <!-- Profile dropdown END --> | + | |
| - | </ | + | |
| - | <!-- Profile dropdown START --> | + | |
| - | <!-- Profile dropdown END --> | + | |
| - | </ | + | |
| - | <!-- Profile and notification END --> | + | |
| - | </ | + | |
| - | </ | + | |
| - | <!-- Nav END --> | + | |
| - | <!--Main menu link START --> | + | |
| - | <nav class=" | + | |
| - | <div class=" | + | |
| - | <!-- Main navbar START --> | + | |
| - | <div class=" | + | |
| - | <ul class=" | + | |
| - | <li class=" | + | |
| - | <li class=" | + | |
| - | <a class=" | + | |
| - | <ul class=" | + | |
| - | < | + | |
| - | <a class=" | + | |
| - | <i class=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | < | + | |
| - | <a class=" | + | |
| - | <i class=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | + | ||
| - | <!-- Nav item --> | + | |
| - | <li class=" | + | |
| - | + | ||
| - | <!-- Nav item --> | + | |
| - | + | ||
| - | <li class=" | + | |
| - | <a class=" | + | |
| - | <ul class=" | + | |
| - | + | ||
| - | < | + | |
| - | <a class=" | + | |
| - | <i class=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | + | ||
| - | < | + | |
| - | <a class=" | + | |
| - | <i class=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | < | + | |
| - | <a class=" | + | |
| - | <i class=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | <li class=" | + | |
| - | + | ||
| - | <li class=" | + | |
| - | <a class=" | + | |
| - | <ul class=" | + | |
| - | < | + | |
| - | <a class=" | + | |
| - | <i class=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | < | + | |
| - | <a class=" | + | |
| - | <i class=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | + | ||
| - | < | + | |
| - | <a class=" | + | |
| - | <i class=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | <li> <hr class=" | + | |
| - | < | + | |
| - | <a class=" | + | |
| - | <i class=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | < | + | |
| - | <a class=" | + | |
| - | <i class=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | < | + | |
| - | <a class=" | + | |
| - | <i class=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | < | + | |
| - | <a class=" | + | |
| - | <i class=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | + | ||
| - | <li class=" | + | |
| - | + | ||
| - | </ | + | |
| - | + | ||
| - | </ | + | |
| - | <!-- Main navbar END --> | + | |
| - | </ | + | |
| - | </ | + | |
| - | <!--Main menu link END --> | + | |
| - | </ | + | |
| - | <!-- **************** MAIN CONTENT START **************** --> | + | |
| - | < | + | |
| - | + | ||
| - | + | ||
| - | < | + | |
| - | .form-check-input { | + | |
| - | margin-top: 0.2em !important; | + | |
| - | margin-left: | + | |
| - | margin-right: | + | |
| - | } | + | |
| - | </ | + | |
| - | + | ||
| - | <main id=" | + | |
| - | <div class=" | + | |
| - | <div class=" | + | |
| - | <div class=" | + | |
| - | </ | + | |
| - | <div class=" | + | |
| - | <div class=" | + | |
| - | <a href=" | + | |
| - | <img class=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | <h5 class=" | + | |
| - | <form class=" | + | |
| - | <div class=" | + | |
| - | </ | + | |
| - | <input id=" | + | |
| - | <!-- Button --> | + | |
| - | <div class=" | + | |
| - | <button class=" | + | |
| - | <button type=" | + | |
| - | <button class=" | + | |
| - | </ | + | |
| - | <input name=" | + | |
| - | </ | + | |
| - | <div class=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | + | ||
| - | <div class=" | + | |
| - | | + | |
| - | <div class=" | + | |
| - | <div class=" | + | |
| - | <div class=" | + | |
| - | <h6 class=" | + | |
| - | + | ||
| - | </ | + | |
| - | <div class=" | + | |
| - | I grant permission and give my consent to BLS International for capturing of electronic images for Liveness detection purpose. This is a requirement in order to complete online appointment request. | + | |
| - | </ | + | |
| - | <div class=" | + | |
| - | <button class=" | + | |
| - | <button class=" | + | |
| - | </ | + | |
| - | + | ||
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | <div class=" | + | |
| - | | + | |
| - | <div class=" | + | |
| - | <div class=" | + | |
| - | <div class=" | + | |
| - | <h6 class=" | + | |
| - | + | ||
| - | </ | + | |
| - | <div class=" | + | |
| - | <p align=" | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| - | <div class=" | + | |
| - | <button class=" | + | |
| - | <button class=" | + | |
| - | </ | + | |
| - | + | ||
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | + | ||
| - | < | + | |
| - | $(document).ready(function () { | + | |
| - | + | ||
| - | + | ||
| - | }); | + | |
| - | + | ||
| - | function onAjaxSuccess(res) { | + | |
| - | if (res.success) { | + | |
| - | window.location.href = res.returnUrl; | + | |
| - | } | + | |
| - | else { | + | |
| - | HideLoader(); | + | |
| - | ShowError(res.error); | + | |
| - | } | + | |
| - | } | + | |
| - | + | ||
| - | function onReject() { | + | |
| - | window.location.href = "/ | + | |
| - | } | + | |
| - | function onBioDisclaimerAccept() { | + | |
| - | } | + | |
| - | function biometricAccepted() { | + | |
| - | ShowLoader(); | + | |
| - | | + | |
| - | url: "/ | + | |
| - | success: function(result) { | + | |
| - | HideLoader(); | + | |
| - | $("# | + | |
| - | }, | + | |
| - | | + | |
| - | | + | |
| - | } | + | |
| - | }); | + | |
| - | + | ||
| - | } | + | |
| - | function onDpAccept() { | + | |
| - | ShowLoader(); | + | |
| - | window.location.href = "/ | + | |
| - | } | + | |
| - | function onDpReject() { | + | |
| - | window.location.href = "/ | + | |
| - | } | + | |
| - | + | ||
| - | function VerifyCaptcha(e, | + | |
| - | var win = GetMainWindow(); | + | |
| - | var title = ' | + | |
| - | win.iframeOpenUrl = '/ | + | |
| - | win.OpenWindow({ Title: | + | |
| - | return false; | + | |
| - | } | + | |
| - | function OnVerifyCaptcha(res) { | + | |
| - | if (res.exceeded) { | + | |
| - | window.location.href = window.location.href.split("?" | + | |
| - | return false; | + | |
| - | } | + | |
| - | else if (res.success) { | + | |
| - | $("# | + | |
| - | $("# | + | |
| - | $("# | + | |
| - | $("# | + | |
| - | + | ||
| - | } | + | |
| - | } | + | |
| - | + | ||
| - | + | ||
| - | </ | + | |
| - | + | ||
| - | + | ||
| - | </ | + | |
| - | <!-- **************** MAIN CONTENT END **************** --> | + | |
| - | <!-- ======================= | + | |
| - | Footer START --> | + | |
| - | <footer class=" | + | |
| - | <div class=" | + | |
| - | <!-- Row START --> | + | |
| - | <div class=" | + | |
| - | + | ||
| - | <!-- Widget 1 START --> | + | |
| - | <div class=" | + | |
| - | <!-- logo --> | + | |
| - | <a href=" | + | |
| - | <img class=" | + | |
| - | </ | + | |
| - | <h4 class=" | + | |
| - | </ | + | |
| - | <!-- Widget 1 END --> | + | |
| - | <!-- Widget 2 START --> | + | |
| - | <div class=" | + | |
| - | <div class=" | + | |
| - | <!-- Link block --> | + | |
| - | <div class=" | + | |
| - | <h5 class=" | + | |
| - | <ul class=" | + | |
| - | <li class=" | + | |
| - | <li class=" | + | |
| - | <li class=" | + | |
| - | <li class=" | + | |
| - | <li class=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | + | ||
| - | <!-- Link block --> | + | |
| - | <div class=" | + | |
| - | <h5 class=" | + | |
| - | <ul class=" | + | |
| - | <li class=" | + | |
| - | <li class=" | + | |
| - | <li class=" | + | |
| - | <li class=" | + | |
| - | <li class=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | + | ||
| - | <!-- Link block --> | + | |
| - | + | ||
| - | <!-- Link block --> | + | |
| - | <div class=" | + | |
| - | <h5 class=" | + | |
| - | <ul class=" | + | |
| - | <li class=" | + | |
| - | <li class=" | + | |
| - | <li class=" | + | |
| - | <li class=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | <!-- Widget 2 END --> | + | |
| - | + | ||
| - | </ | + | |
| - | + | ||
| - | <div class=" | + | |
| - | + | ||
| - | <!-- Payment card --> | + | |
| - | <div class=" | + | |
| - | <small style=" | + | |
| - | </ | + | |
| - | + | ||
| - | <!-- Social media icon --> | + | |
| - | <div class=" | + | |
| - | <h5 class=" | + | |
| - | <ul class=" | + | |
| - | <li class=" | + | |
| - | <li class=" | + | |
| - | <li class=" | + | |
| - | <li class=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | <!-- Divider --> | + | |
| - | <hr class=" | + | |
| - | + | ||
| - | <!-- Bottom footer --> | + | |
| - | <div class=" | + | |
| - | <div class=" | + | |
| - | <div class=" | + | |
| - | <!-- copyright text --> | + | |
| - | <div class=" | + | |
| - | <!-- copyright links--> | + | |
| - | <div class=" | + | |
| - | <ul class=" | + | |
| - | <li class=" | + | |
| - | <li class=" | + | |
| - | <li class=" | + | |
| - | + | ||
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | <!-- ======================= | + | |
| - | Footer END --> | + | |
| - | <!-- Back to top --> | + | |
| - | <div class=" | + | |
| - | <!-- Bootstrap JS --> | + | |
| - | + | ||
| - | <div class=" | + | |
| - | | + | |
| - | <div class=" | + | |
| - | <div class=" | + | |
| - | <div class=" | + | |
| - | <h6 class=" | + | |
| - | <button class=" | + | |
| - | </ | + | |
| - | + | ||
| - | </ | + | |
| - | <div class=" | + | |
| - | < | + | |
| - | Select & | + | |
| - | </ | + | |
| - | </ | + | |
| - | <div class=" | + | |
| - | <button class=" | + | |
| - | <button class=" | + | |
| - | </ | + | |
| - | + | ||
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | <script src="/ | + | |
| - | + | ||
| - | <!-- Vendors --> | + | |
| - | <script src="/ | + | |
| - | <script src="/ | + | |
| - | <script src="/ | + | |
| - | <script src="/ | + | |
| - | <script src="/ | + | |
| - | <script src="/ | + | |
| - | <script src="/ | + | |
| - | + | ||
| - | <!-- ThemeFunctions --> | + | |
| - | <script src="/ | + | |
| - | <script src="/ | + | |
| - | + | ||
| - | < | + | |
| - | var iframeOpenUrl = ""; | + | |
| - | var globalPopups = GetStack(); | + | |
| - | var globalCallBack = null; | + | |
| - | var globalWindowSender = null; | + | |
| - | function OnLanguageChange(lng) { | + | |
| - | + | ||
| - | if (lng === ' | + | |
| - | return false; | + | |
| - | } | + | |
| - | ShowLoader(); | + | |
| - | $.ajax({ | + | |
| - | type: " | + | |
| - | url: "/ | + | |
| - | success: function (response) { | + | |
| - | HideLoader(); | + | |
| - | if (response != "" | + | |
| - | window.location.href = window.location.href; | + | |
| - | } | + | |
| - | }, | + | |
| - | error: function (response) { | + | |
| - | HideLoader(); | + | |
| - | alert(" | + | |
| - | }, | + | |
| - | }); | + | |
| - | return false; | + | |
| - | } | + | |
| - | function OnLogout() { | + | |
| - | $('# | + | |
| - | } | + | |
| - | function OnLogoutSubmit() { | + | |
| - | ShowLoader(); | + | |
| - | $.ajax({ | + | |
| - | type: " | + | |
| - | url: "/ | + | |
| - | success: function (response) { | + | |
| - | HideLoader(); | + | |
| - | if (response != "" | + | |
| - | window.location.href = response.ru; | + | |
| - | } | + | |
| - | }, | + | |
| - | error: function (response) { | + | |
| - | HideLoader(); | + | |
| - | alert(response.error); | + | |
| - | }, | + | |
| - | }); | + | |
| - | return false; | + | |
| - | } | + | |
| - | </ | + | |
| - | + | ||
| - | <script src="/ | + | |
| - | </ | ||
| - | </ | ||
