Skip to content

Instantly share code, notes, and snippets.

View seriiserii825's full-sized avatar

Burduja Sergiu seriiserii825

  • Bludelego
  • Moldova. Chishinau
View GitHub Profile
.tabs
ul.tabs - navigation
li(show - tab="tab-hits").tabs - navigation__item.tabs - navigation__item--active Hits
li(show - tab="tab-benefits").tabs - navigation__item Benefits
li(show - tab="tab-new").tabs - navigation__item New
.tabs__body
.tab.tab--active.tab - hits
h2 tabs - hits content
.tab.tab - benefits
h2 tabs - benefits content
input[type="text"]::-webkit-input-placeholder,
input[type="email"]::-webkit-input-placeholder,
input[type="phone"]::-webkit-input-placeholder
ptsansbold()
font-size 18px
color black
/* webkit */
input[type="text"]::-moz-placeholder,
input[type="email"]::-moz-placeholder,
We couldn’t find that file to show.
<?php
get_header();
if ( is_home() ) {
// Featured Slider, Carousel
if ( bard_options( 'featured_slider_label' ) === true || bard_is_preview() ) {
get_template_part( 'templates/header/featured', 'slider' );
}
@seriiserii825
seriiserii825 / main.js
Created March 27, 2018 15:29
active link ot the menu
/*active menu
=======================================*/
$('#js-top-nav_menu li').each(function () {
var location = window.location.pathname;
var location = location.substring(1);
var link = $(this).children('a').attr('href');
if(location === link) {
$(this).addClass('active');
}
});
@seriiserii825
seriiserii825 / index.php
Created February 9, 2018 22:36
dumper php
function dumper2() {
echo '<pre>'.print_r(func_get_args(), true).'</pre>';
}
We couldn’t find that file to show.
min + Math.floor(Math.random() * (max + 1 - min))
$option = [
\PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION,
\PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC,
\PDO::ATTR_EMULATE_PREPARES => false
];
try{
$this->dbh = new \PDO('mysql:host=127.0.0.1;dbname=stepantev', 'root', 'root', $option);
$this->dbh->exec('set charset UTF8');
}
class Singleton
{
protected static $instance;
protected function __construct()
{
}
public static function instance()