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
Vue.component('select2', { | |
props: ['options', 'value'], | |
template: ` | |
<div> | |
<select multiple ref='select'> | |
<slot></slot> | |
</select> | |
</div> | |
`, | |
mounted: function () { |
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
$("[data-search-dom]").each(function(i,e) { | |
var timeout = null; | |
var $e = $(e); | |
var $target = $($e.data("search-dom")); | |
if($target.length > 0) { | |
$e.keyup(function() { | |
var search = $.trim($e.val()); | |
window.clearTimeout(timeout); | |
timeout = setTimeout(function() { | |
if(search) { |
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
$(document).ready(function() { | |
var $offCanvasWrap = $(".off-canvas-wrap"); | |
$(window).resize(function() { | |
if(this.outerWidth > 640 && $offCanvasWrap.hasClass("move-right")) { | |
$(".exit-off-canvas").trigger("click"); | |
} | |
}); | |
}); |
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
<?php | |
class HomeController extends BaseController { | |
/* | |
|-------------------------------------------------------------------------- | |
| Default Home Controller | |
|-------------------------------------------------------------------------- | |
| | |
| You may wish to use controllers instead of, or in addition to, Closure | |
| based routes. That's great! Here is an example controller method to |