mirror of
https://github.com/mpolden/echoip.git
synced 2025-02-15 11:38:59 +01:00
Remove jQuery dep
This commit is contained in:
parent
a67a47a93f
commit
9455df2635
@ -1,14 +1,14 @@
|
|||||||
/*jslint es5: true, indent: 2, browser: true*/
|
/*jslint es5: true, indent: 2, browser: true*/
|
||||||
/*global jQuery: true*/
|
|
||||||
|
|
||||||
(function ($) {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
var onLoad = function (event) {
|
||||||
$(document).ready(function () {
|
var select = document.querySelector('#select-command');
|
||||||
$('#select-command').on('change', function () {
|
select.addEventListener('change', function () {
|
||||||
$('.command').text($(this).val());
|
[].forEach.call(document.querySelectorAll('.command'), function (el) {
|
||||||
|
el.innerHTML = this.value;
|
||||||
|
}, this);
|
||||||
});
|
});
|
||||||
});
|
}
|
||||||
|
document.addEventListener('DOMContentLoaded', onLoad);
|
||||||
})(jQuery);
|
})();
|
||||||
|
|
||||||
|
1
assets/js/app.min.js
vendored
1
assets/js/app.min.js
vendored
@ -1 +0,0 @@
|
|||||||
!function($){"use strict";$(document).ready(function(){$("#select-command").on("change",function(){$(".command").text($(this).val())})})}(jQuery);
|
|
@ -65,7 +65,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a href="https://github.com/martinp/ifconfig"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a>
|
<a href="https://github.com/martinp/ifconfig"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a>
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
|
<script src="/assets/js/app.js"></script>
|
||||||
<script src="/assets/js/app.min.js"></script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user