Skip to content

Instantly share code, notes, and snippets.

View amelieykw's full-sized avatar

amelieykw amelieykw

  • Sophia Antipolis, France
View GitHub Profile
@amelieykw
amelieykw / select-childrenElement.js
Last active March 29, 2018 12:49
[jQuery Select children element] #jQuery #selector #childrenElement
element.children(":first").toggleClass("redClass");
// select the first child element
@amelieykw
amelieykw / pagination-wrap..md
Created March 29, 2018 12:52
[Bootstrap Pagination too many pages Auto-wrap Be Responsive] #Bootstrap #Pagination #wrap #responsive

Had to add flex-wrap to fix it.

<ul class="pagination flex-wrap">

demo demo

<div class="nav-scroller py-1 mb-2"> 
	 
@amelieykw
amelieykw / fullsize.css
Created March 29, 2018 15:44
[inner div full height/width outer div] #html #css #div #fullwidth #fullheight
html,body{
height: 100%;
}
.outer{
background-color:blue;
height: 80%; border:red solid 2px;
display: table;
width:100%
}
.inner-title{
@amelieykw
amelieykw / arrow.css
Last active March 30, 2018 14:42
[draw arrow of different angles in HTML with CSS] #HTML #CSS #arrow #drawArrow
.arrow {
height: 50px;
position: relative;
width: 30px;
background: black;
margin: 100px;
display: inline-block;
}
.arrow:before {
@amelieykw
amelieykw / 01 - Understanding Highcharts.md
Last active April 20, 2018 14:45
[Highcharts - 02 - Chart Concepts] #Highcharts #ChartConcepts #Title&Subtitle #Axes #Series # Tooltip #Legend #RangeSelector #Navigator #Scrollbar #PlotBands&PlotLines #Zooming #Labels&StringFormatting #Drilldown #3Dcharts #Accessibility #Responsive

To get to grasp with how Highcharts works it is important to understand the various parts or concepts of a chart.

Below is an image and a description of the main concepts in a chart.

Title

Is the text that will be presented at the top of a chart. more information

Series

@amelieykw
amelieykw / align-left.js
Last active April 3, 2018 09:47
[Highcharts - Title] #Highcharts #title #align
Highcharts.chart('container', {
chart: {
plotBorderWidth: 1,
marginLeft: 80
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
title: {
text: 'Title aligned left',
@amelieykw
amelieykw / solid-gauge.md
Last active April 3, 2018 15:49
[Highcharts - Solid gauge] #Highcharts #Solidgauge

@amelieykw
amelieykw / 00 - Introduction.md
Last active April 5, 2018 13:08
[Bootstrap - Text] #Bootstrap #Text #Text-alignment #Text-wrapping&overflow #Text-transform #Font-weight&italics

Text

Documentation and examples for common text utilities to control alignment, wrapping, weight, and more.

Content

  • 01 - Text alignment
  • 02 - Text wrapping and overflow
  • 03 - Text transform
  • 04 - Font weight and italics
@amelieykw
amelieykw / sort_divs.css
Last active December 18, 2022 13:12
[jQuery sort divs - by DOM element name] #jQuery #javascript #sort_divs #html #css
body {
background: #eee;
font-family: sans-serif;
}
.box {
background: red;
height: 200px;
width: 200px;
}
.box h1 {
@amelieykw
amelieykw / sort_divs.html
Last active April 5, 2018 14:30
[jQuery sort divs - by DOM element attribut] #jQuery #javascript #sort_divs #html #css
<div id="sortexample">
<div class="sortitem" sortweight="5">Pears [sortweight: 5]</div>
<div class="sortitem" sortweight="3">Apples [sortweight: 3]</div>
<div class="sortitem" sortweight="1">Cherries [sortweight: 1]</div>
<div class="sortitem" sortweight="4">Oranges [sortweight: 4]</div>
<div class="sortitem" sortweight="2">Strawberries [sortweight: 2]</div>
</div>