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
<!-- | |
Yep, I use blogger for my blog :) | |
All the examples I found online used CSS, which still renders all the content and slows down the page loading | |
Making this change will allow you to increase the number of posts on the page without a huge page size | |
--> | |
<div class='post-body entry-content' expr:id='"post-body-" + data:post.id' itemprop='articleBody'> | |
<b:if cond='data:blog.url != data:post.url'> | |
<data:post.snippet /> <!-- only show snippets if not on the post page, or just delete this element to skip it entirely --> |
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
angular.module('rootScopeExtensionsModule', []) | |
.config($provide => { | |
$provide.decorator('$rootScope', $delegate => { | |
var rootScope = $delegate; | |
Object.defineProperty(rootScope.constructor.prototype, '$bus', { | |
get: function() { | |
return { | |
publish: (msg, data) => { |
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
angular.module('utilsModule').filter("megaNumber", () => { | |
return (number, fractionSize) => { | |
if(number === null) return null; | |
if(number === 0) return "0"; | |
if(!fractionSize || fractionSize < 0) | |
fractionSize = 1; | |
var abs = Math.abs(number); |