diff options
| author | Kumar Priyansh <[email protected]> | 2020-07-17 21:20:37 +0530 |
|---|---|---|
| committer | Kumar Priyansh <[email protected]> | 2020-07-17 21:20:37 +0530 |
| commit | 92339db9ca93839cbe1e4c7a23349fa7e9d3caf9 (patch) | |
| tree | 6135a8fcec5df4c1c2940570325aaaf3b5e0a1f9 /src/scripts/starterWindow.js | |
| parent | 65cd01d0d7eae5b5e94b32f4de5f62521726c846 (diff) | |
| download | authorr-92339db9ca93839cbe1e4c7a23349fa7e9d3caf9.tar.xz authorr-92339db9ca93839cbe1e4c7a23349fa7e9d3caf9.zip | |
Integrated NativeKit
Diffstat (limited to 'src/scripts/starterWindow.js')
| -rw-r--r-- | src/scripts/starterWindow.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/scripts/starterWindow.js b/src/scripts/starterWindow.js index e815381..0f20eca 100644 --- a/src/scripts/starterWindow.js +++ b/src/scripts/starterWindow.js @@ -1,24 +1,24 @@ -$(document).ready(function(){ - $('.nav-group').on('click', 'span', function() { +$(document).ready(function () { + $('.nav-group').on('click', 'span', function () { $('.nav-group span.active').removeClass('active'); $(this).addClass('active'); }); - $('.templateIcon').click(function(e){ + $('.templateIcon').click(function (e) { $('.template .templateIcon').removeClass('clicked'); $('.template .templateName span').removeClass('clickedText'); $(this).addClass('clicked'); var parentId = ($(this).parent().attr('id')); - $('#'+parentId + ' .templateName span').addClass('clickedText') + $('#' + parentId + ' .templateName span').addClass('clickedText') e.stopPropagation() }) - $(document).on("click", function(e) { + $(document).on("click", function (e) { if ($(e.target).is(".templateIcon, .templateName span") === false) { $('.template .templateIcon').removeClass('clicked'); $('.template .templateName span').removeClass('clickedText'); } }); - $('#startSelected').click(function(){ - if ($('.template .templateIcon').hasClass('clicked')){ + $('#startSelected').click(function () { + if ($('.template .templateIcon').hasClass('clicked')) { var parentId = ($('.clicked').parent().attr('id')); start(parentId); } |
