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
<script type="text/discourse-plugin" version="0.1"> | |
const computed = require("ember-addons/ember-computed-decorators").default; | |
const minimumOffset = require("discourse/lib/offset-calculator").minimumOffset; | |
const { iconHTML } = require("discourse-common/lib/icon-library"); | |
const { run } = Ember; | |
const mobileView = $("html").hasClass("mobile-view"); | |
const isSafari = !!navigator.userAgent.match(/Version\/[\d\.]+.*Safari/); | |
const scrollElemnt = isSafari ? "body" : "html"; |
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
$rating-small: 'small'; | |
$rating-medium: 'medium'; | |
$rating-large: 'large'; | |
$windowsphone-fallback-small: 15px 15px; | |
$windowsphone-fallback-medium: 20px 20px; | |
$windowsphone-fallback-large: 25px 25px; | |
$given-parameter1: 'review'; | |
$given-parameter2: 'shop'; |
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
// set svg d path used as fallback (star) | |
$svg-d-path: 'm25,1l6,17l18,0l-14,11l5,17l-15,-10l-15,10l5,-17l-14,-11l18,0l6,-17z' !default; | |
// functions to urlencode the svg string | |
@function str-replace($string, $search, $replace: '') { | |
$index: str-index($string, $search); | |
@if $index { | |
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace); | |
} | |
@return $string; |
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
/** | |
Dies sind die ISO codes | |
ä - \00e4 | |
ö - \00f6 | |
ü - \00fc | |
*/ | |
/** | |
Dies ist ein schöner Tag an dem ich am liebsten schwimmen gehen würde. |
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
// compressed version | |
"cmd": ["sass", "--update", "${file_path}\\..\\style.scss:${project_path}\\themes\\ignaz-biegler\\css\\style.min.css", "--stop-on-error", "--no-cache", "--style", "compressed"], | |
// normal version | |
"cmd": ["sass", "--update", "${file_path}\\..\\style.scss:${project_path}\\themes\\ignaz-biegler\\css\\style.css", "--stop-on-error", "--no-cache"], |