Skip to content

Instantly share code, notes, and snippets.

@kadsyy
kadsyy / java.js
Last active October 13, 2023 03:26
java
$(".modal-dialog").parent().on("show.bs.modal", function (e) {
$(e.relatedTarget.attributes["data-target"].value).appendTo("body");
});
//init if class exist
if (document.getElementsByClassName("slider-carousel").length) {
var splide = new Splide('.slider-carousel', {
perPage: 4,
focus: 0,
pagination: false,
@kadsyy
kadsyy / laravel + tailwind
Last active November 11, 2021 03:03
Laravel
php artisan vendor:publish --tag=jetstream-views
@kadsyy
kadsyy / horizontal-center-absolute.css
Created January 13, 2021 04:43
horizontal center position absolute
.center {
left: 50%;
transform: translateX(-50%);
}
@kadsyy
kadsyy / fullscreen-width.css
Created September 1, 2018 06:41
Fullscreen width
.full-width {
width: 100vw;
position: relative;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right: -50vw;
}
@kadsyy
kadsyy / .scss
Created October 24, 2017 16:25
bootstrap 3 table-borderless scss
.table {
&.table-borderless td,
&.table-borderless th {
border: 0;
}
}
@kadsyy
kadsyy / middle_border.css
Created August 18, 2016 03:10
CSS middle border
&:after {
content : "";
height : 4px;
width : 30px;
margin: 0 auto;
display: block;
background: #888;
border-radius: 4px;
}
@kadsyy
kadsyy / 0_reuse_code.js
Created August 2, 2016 11:04
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console