Skip to content

Instantly share code, notes, and snippets.

View RiodeJaneiroo's full-sized avatar
🎯
Focusing

Vadim Zmiievskyi RiodeJaneiroo

🎯
Focusing
  • Ukraine
View GitHub Profile
@RiodeJaneiroo
RiodeJaneiroo / main.scss - placeholder style
Last active August 17, 2016 04:00
css rules for input placeholder
input::-webkit-input-placeholder {
font-weight: 400;
font-size: 16px;
}
input::-moz-placeholder {
font-weight: 400;
font-size: 16px;
}
input:-moz-placeholder {
font-weight: 400;
@RiodeJaneiroo
RiodeJaneiroo / index.html
Created September 7, 2016 07:51
tabs html+css
<div class="tabs-widget">
<div class="header">
<a href="#tab-1-1">Первая вкладка</a>
<a href="#tab-1-2">Вторая вкладка</a>
<a href="#tab-1-3">Третья вкладка</a>
</div>
<div class="content">
<div id="tab-1-1" class="scroller"></div>
<div class="item">
<p>Это первая вкладка этого классного виджета табов.</p>
@RiodeJaneiroo
RiodeJaneiroo / index.html
Created March 31, 2018 13:14
style input file
<div class="form-group">
<label class="control-label" for="af_message">Загрузите скриншот</label><br><br>
<label for="input-file" class="input-upload">
<input name="project" type="file" id="input-file" accept=".jpg, .jpeg, .png, .psd, .pdf, .doc, .docx">
<img src="/tmp/img/arrow-up.svg" alt="upload file" />
<br>
<span>выбрать файл для отправки</span>
</label>
</div>
@RiodeJaneiroo
RiodeJaneiroo / index.html
Last active May 5, 2021 15:45
[Google Analitics] #google_analitics
<!-- GoogleAnalytics counter -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-54873391-1', 'auto');
ga('send', 'pageview');
setTimeout("ga('send', 'event', '15 seconds', 'read')",15000);
@RiodeJaneiroo
RiodeJaneiroo / main.js
Created October 2, 2018 14:35
[Smooth Scroll to anchor] #js #scroll
$('a[href^="#"]').on('click', function(event) {
event.preventDefault();
var sc = $(this).attr("href"),
dn = $(sc).offset().top;
$('html, body').animate({scrollTop: dn}, 1000);
});
@RiodeJaneiroo
RiodeJaneiroo / index.php
Last active November 17, 2019 08:49
[Replace number phone] #php #replace #phone #wordpress
function cleanNumberPhone($string) {
$newString = preg_replace('~\D+~','', $string);
return $newString;
}
@RiodeJaneiroo
RiodeJaneiroo / index.html
Last active January 16, 2019 11:33
[Favicon link] #favicon #html
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="64x64" href="/favicon64.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon32.png">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
@RiodeJaneiroo
RiodeJaneiroo / .htaccess
Created October 3, 2018 16:46
[MODX revo htacces 301 redirect] Modx Revo 301 redirect from /index.php #modx #htaccess
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.(php|html|htm)\ HTTP/
RewriteRule ^(.*)index\.(php|html|htm)$ $1 [R=301,L]
@RiodeJaneiroo
RiodeJaneiroo / functions.php
Last active October 9, 2018 15:01
[Wordpress F.A.Q|Portfolio| CPT] Wordpress – register post type - faq|Portfolio| #wordpress #cpt #no_url #register_post_type #faq #portfolio
add_action('init', 'art_register_port');
function art_register_port(){
register_post_type('portfolio', array(
'labels' => array(
'name' => 'Portfolio', // Основное название типа записи
'singular_name' => 'Portfolio', // отдельное название записи типа Book
'add_new' => 'Add',
'add_new_item' => 'Add new',
'edit_item' => 'Edit',
@RiodeJaneiroo
RiodeJaneiroo / style.css
Created October 4, 2018 17:59
[Font Smoothing] #css #font #font_smoothing
/* Smoothing */
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
font-smoothing: antialiased;
-webkit-font-smoothing: antialiased;