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
<ion-grid> | |
<ion-row> | |
<ion-col width-33 *ngFor="let info of infos"> | |
<div class="instructions" [navPush]="info.tap"> | |
<div> | |
<img src="assets/icons/{{info.icon}}.png" alt="Icon"> | |
</div> | |
<span>{{info.title}}</span> | |
</div> | |
</ion-col> |
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
<ion-header> | |
<ion-navbar> | |
<ion-title *ngIf="selectedVarud"> | |
{{selectedVarud.title}}</ion-title> | |
</ion-navbar> | |
</ion-header> | |
<ion-content> | |
<ion-list> | |
<ion-list-header class="list-header-margin">Jook</ion-list-header> |
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
.admin-bar .site-header { | |
top: 46px; | |
} |
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
.admin-bar .site-header { | |
top: 46px; | |
} |
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
var $document = $(document), | |
$header = $('.admin-bar .site-header'); | |
if($(window).width() < 601) { | |
$document.scroll(function() { | |
if ($document.scrollTop() >= 46) { | |
// user scrolled 46 pixels or more; | |
$header.css({"top": "0"}) | |
} else { |
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
@media screen and ( min-width: 783px ) { | |
.admin-bar .site-header { | |
top: 32px; | |
} | |
} |
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
//function to equalise li.person elemenets, no matter the content. | |
// Shorthand for $( document ).ready() | |
$(function() { | |
console.log( "ready! and equalise." ); | |
var maxHeight = 0; | |
$("li").each(function(){ | |
if ($(this).height() > maxHeight) { maxHeight = $(this).height(); } | |
}); | |
$("li").height(maxHeight); | |
}); |
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
// whole nr either 0,1,or 2 | |
Math.floor((Math.random() * (3-0))); | |
// whole nr either 1,2 or 3 | |
Math.floor((Math.random() * (3-0) + 1)); |
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
<?php | |
function use_parent_theme_stylesheet() { | |
// Use the parent theme's stylesheet | |
return get_template_directory_uri() . '/style.css'; | |
} | |
function my_theme_styles() { | |
$themeVersion = wp_get_theme()->get('Version'); | |
// Enqueue our style.css with our own version |
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
# Put the following into your ~/.bash_profile file (Mac) or ~/.bashrc file (Ubuntu) | |
# Enables to use shortcuts for most common git commands. | |
# ---------------------- | |
# Git Aliases | |
# ---------------------- | |
alias gf='git status' | |
alias gb='git branch' | |
alias gbn='git checkout' | |
alias gbnb='git checkout -b' |
OlderNewer