Select input using radio inputs
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 id="info">Observe the platform icon's motion direction when there is up and down hover on options.</div> | |
<form id="app-cover"> | |
<div id="select-box"> | |
<input type="checkbox" id="options-view-button"> | |
<div id="select-button" class="brd"> | |
<div id="selected-value"> | |
<span>Select a platform</span> | |
</div> | |
<div id="chevrons"> |
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
<span class="dropdown-el"> | |
<input type="radio" name="sortType" value="Relevance" checked="checked" id="sort-relevance"><label for="sort-relevance">Relevance</label> | |
<input type="radio" name="sortType" value="Popularity" id="sort-best"><label for="sort-best">Product Popularity</label> | |
<input type="radio" name="sortType" value="PriceIncreasing" id="sort-low"><label for="sort-low">Price Low to High</label> | |
<input type="radio" name="sortType" value="PriceDecreasing" id="sort-high"><label for="sort-high">Price High to Low</label> | |
<input type="radio" name="sortType" value="ProductBrand" id="sort-brand"><label for="sort-brand">Product Brand</label> | |
<input type="radio" name="sortType" value="ProductName" id="sort-name"><label for="sort-name">Product Name</label> | |
</span> |
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.select-ctr | |
%div.selected-input.input-preview What is your favourite pet? | |
%div.input.input-1{:data => {:val => "Cat"}} Cat | |
%div.input.input-2{:data => {:val => "Dog"}} Dog | |
%div.input.input-3{:data => {:val => "Birds"}} Birds | |
%div.input.input-4{:data => {:val => "Cow"}} Cow | |
%div.input.input-5{:data => {:val => "Bear"}} Bear |
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
<label id="img_category_label"class="field"for="img_category"data-value=""> | |
<span>Category</span> | |
<div id="img_category"class="psuedo_select"name="img_category"> | |
<span class="selected"></span> | |
<ul id="img_category_options"class="options"> | |
<li class="option"data-value="opt_1">Option 1</li> | |
<li class="option"data-value="opt_2">Option 2</li> | |
</ul> | |
</div> | |
</label> |
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
body { | |
margin: 0; | |
} | |
.main { | |
display: flex; | |
flex-direction: column; | |
width: 100vw; | |
height: 100vh; | |
} |
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
'use strict'; | |
var has = Object.prototype.hasOwnProperty; | |
var hexTable = (function () { | |
var array = []; | |
for (var i = 0; i < 256; ++i) { | |
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase()); | |
} |
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 http = require('http'); | |
var crypto = require('crypto'); | |
var uuidV1 = require('uuid/v1'); | |
var greenNodejs = function(bizCfg, callback){ | |
var accessKeyId = bizCfg['accessKeyId']; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | |
<title>滚动到页面指定元素</title> | |
<style type="text/css"> | |
#target{ | |
position: absolute; | |
top:2000px; |