Skip to content

Instantly share code, notes, and snippets.

View CB9TOIIIA's full-sized avatar
💭
Make JBZoo Great Again ^_^

Eugene Kopylov CB9TOIIIA

💭
Make JBZoo Great Again ^_^
View GitHub Profile
@CB9TOIIIA
CB9TOIIIA / gist:cd83abc81e43a3ba32fd
Created April 21, 2015 16:20
Perfmap by zeman for browsers
javascript:(function(){var el=document.createElement('script');el.src='https://zeman.github.io/perfmap/perfmap.js';document.body.appendChild(el);})();
@CB9TOIIIA
CB9TOIIIA / Подсчитать кол-во лайков yandex share
Last active April 29, 2016 17:48
Получить лайки из соц. сетей с помощью share yandex, далее все сложить и вывести total
<script type="text/javascript" src="//yastatic.net/share/share.js" charset="utf-8"></script>
<div class="yashare-auto-init" data-yashareL10n="ru" data-yashareType="small" data-yashareQuickServices="vkontakte,facebook,twitter,odnoklassniki,moimir,gplus" data-yashareLink="http://mysite.com/" data-yashareTheme="counter"></div>
<div class="likediv">Сумма лайков:</div> <div class="totalsumm"></div></div>
<style>.likediv, .totalsumm {display:inline;}</style>
function Summ() {
var sum = 0, i=0, t=0, tmp_sum=0;
var out = "";
@CB9TOIIIA
CB9TOIIIA / Получить лайки из соц. сетей и общее кол-во по url
Created October 21, 2015 09:44
Получить лайки из соц. сетей и общее кол-во по url
Всего: <span class="totalsumms"></span>
<br />
<br />VK: <span class="vk"></span>
<br />OK: <span class="ok"></span>
<br />FB: <span class="fb"></span>
<br />TW: <span class="tw"></span>
<br />GP: <span class="gp"></span>
<br />MR: <span class="mr"></span>
<script>
@CB9TOIIIA
CB9TOIIIA / JBZoo Full URL in JRoute
Last active November 13, 2015 05:26
JBZoo Full URL in JRoute
$fullurl = JRoute::_($this->app->route->item($this->_item, false), false, 2);
@CB9TOIIIA
CB9TOIIIA / jQuery(function($) on Joomla!
Last active November 16, 2015 09:09
jQuery(function($) on Joomla!
jQuery(document).ready(function($) {
//do jQuery stuff when DOM is ready
});
@CB9TOIIIA
CB9TOIIIA / Вывод позиции модуля Joomla!
Created November 13, 2015 06:13
Вывод позиции модуля Joomla!
<jdoc:include type="modules" name="latestnews" style="xhtml"/>
@CB9TOIIIA
CB9TOIIIA / Bootstrap 3 snippet
Created November 13, 2015 06:16
Bootstrap 3 snippet
CDN
Component Snippet code
CDN link (both CSS & JS) bs3-cdn
CDN link (CSS only) bs3-cdn:css
CDN link (JS only) bs3-cdn:js
Local
Component Snippet code
Link to local bootstrap files bs3-local
@CB9TOIIIA
CB9TOIIIA / Bootstrap 3 Grid snippet
Created November 13, 2015 06:16
Bootstrap 3 Grid snippet
bs3-col:12
@CB9TOIIIA
CB9TOIIIA / error_reporting(E_ALL)
Created November 15, 2015 19:47
error_reporting(E_ALL)
<?php error_reporting(E_ALL); ?>
@CB9TOIIIA
CB9TOIIIA / Footer с зазубренками
Created November 16, 2015 07:22
Footer с зазубренками