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
<style> | |
/* aos = animate on scroll */ | |
/* ================== Fade ================== */ | |
[class^='aos-fade'] { | |
opacity: 0; | |
transition: 1s; | |
} | |
[class^='aos-fade'].aos-animate { | |
opacity: 1; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
/* Core function which does event delegation like jQuery http://www.qopy.me/MpAEDJZiQKutDbKGuOEdQA | |
* Writing | |
* addDelegatedEventListener(parent, eventName, childSelector, handler) | |
* | |
* Is absolutely equivalent to writing jQuery's code: | |
* $(parent).on(eventName, childSelector, handler) |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<button data-bind="click: loadProducts">Load Products</button> | |
<ul data-bind="foreach: products"> | |
<li> | |
<span data-bind="text: id"></span> | |
<span data-bind="text: name"></span> | |
</li> |
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 Pagination | |
{ | |
public $page; | |
public $totalCount; | |
public $perPage; | |
public $hasNext; | |
public $hasPrev; |
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
.fulltable { | |
display: table; | |
width: 100%; | |
} | |
/* See bootstrap's media.less for code that inspired this one*/ | |
& { | |
@_padding: 10px; | |
@_padding-thin: 5px; | |
@_padding-thick: 20px; |
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
<style> | |
.relative { | |
position: relative; | |
} | |
.absolute-rightbottom { | |
position: absolute; | |
right: 0; | |
bottom: 0; | |
} |
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
/* | |
* If you have | |
* .oneline { | |
* overflow: hidden; | |
* white-space: nowrap; | |
* text-overflow: ellipsis | |
* } | |
* | |
* inside Bootstrap's .media-body, i.g.: | |
* |
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 | |
$the_folder = '.'; | |
$zip_file_name = '1.zip'; | |
$download_file= true; | |
//$delete_file_after_download= true; doesnt work!! | |
class FlxZipArchive extends ZipArchive { |
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
/* Variants of initialization */ | |
/* 1 */ | |
self.emails = ko.mapping.fromJS(emailArray); | |
/* 2 */ | |
self.emails = ko.observableArray(); | |
ko.mapping.fromJS(emailArray, undefined, self.emails); | |
/* 3 */ |