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
<div class="progress-wrap progress" data-progress-percent="22"> | |
<div class="progress-bar progress"></div> | |
</div> |
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
<div class="progress-wrap progress" data-progress-percent="25"> | |
<div class="progress-bar progress"></div> | |
</div> |
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
<!-- Change the below data attribute to play --> | |
<div class="progress-wrap progress" data-progress-percent="25"> | |
<div class="progress-bar progress"></div> | |
</div> |
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
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
//Read the package.json (optional) | |
pkg: grunt.file.readJSON('package.json'), | |
// Metadata. | |
meta: { |
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
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
//Read the package.json (optional) | |
pkg: grunt.file.readJSON('package.json'), | |
// Metadata. | |
meta: { |
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
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
uglify: { | |
options: { | |
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' | |
} | |
}, |
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
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
//Read the package.json (optional) | |
pkg: grunt.file.readJSON('package.json'), | |
// Metadata. | |
meta: { |
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
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
//Read the package.json (optional) | |
pkg: grunt.file.readJSON('package.json'), | |
// Metadata. | |
meta: { |
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
{ | |
"git.autofetch": true, | |
"editor.fontFamily": "Fira Code", | |
"editor.fontSize": 13, | |
"editor.fontLigatures": true, | |
"workbench.iconTheme": "vscode-icons", | |
"files.exclude": { | |
"**/node_modules": true, | |
"**/gems": true, | |
"**/._*": true, |
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
export const truncateText = (text, characterLimit, addEllipsis = true) => { | |
if (text.length <= characterLimit) { | |
return text | |
} else { | |
const specialChars = ['.',',','!','?','-','—',' '] | |
let truncatedText = text.substring(0, characterLimit) | |
if (addEllipsis) { | |
const lastTruncatedChar = () => truncatedText.charAt(truncatedText.length - 1) | |
const hasSpecialLastChar = () => specialChars.includes(lastTruncatedChar()) |
OlderNewer