Created
October 12, 2018 08:31
-
-
Save denisz/f0bd0f2e98352d2c088e052ce6a5fd1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Блок с описанием пака--> | |
<div class="b-list-describe"> | |
<div class="b-describe-package hide" s18n data-package="Basic"> | |
Period Basic | |
</div> | |
<div class="b-describe-package hide" s18n data-package="Standart"> | |
Period Standart | |
</div> | |
<div class="b-describe-package hide" s18n data-package="Optimal"> | |
Period Optimal | |
</div> | |
<div class="b-describe-package hide" s18n data-package="Expert"> | |
Period Expert | |
</div> | |
<div class="b-describe-package hide" s18n data-package="Unreal"> | |
Period Unreal | |
</div> | |
<div class="b-describe-package hide" s18n data-package="Epic"> | |
Period Epic | |
</div> | |
</div> | |
<!--Скрипт для описание пака--> | |
<script> | |
$('#packages').change(function(e) { | |
var $sel = $(e.target), type = $sel.val(); | |
$( ".b-describe-package" ).each(function(idx, elem){ | |
var display = type == $(elem).data("package"); | |
$(this).toggle( display ); | |
}); | |
}) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment