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"/> | |
<title>Ring Progress Bar</title> | |
</head> | |
<body> | |
<section> | |
<input type="range" value="64" /> | |
<svg> |
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> | |
<title>circle progressbar</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
var range = $('#range'); | |
var bg = $('#counter'); | |
var ctx = bg[0].getContext('2d'); |
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/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<style type="text/css"> | |
.slides{ | |
margin: 0; | |
padding: 0; | |
list-style-type: none; | |
height: 220px; | |
/*width: 802px;*/ | |
} | |
.slides li{ |
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> | |
<title>circle progressbar</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
function setValue(value){ | |
$(".progress-bar").css('background-position',-value*54 + 2 +'px 2px'); | |
$(".progress-value em").text(value); |
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> | |
<title></title> | |
</head> | |
<body> | |
<style> | |
.clock .one{ | |
width: 16px; | |
height: 16px; |
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 | |
echo CHtml::link("删除", '#', array( | |
'submit'=>array('/sns/videos/delete', "id"=>$model->id), | |
'csrf'=>true, | |
'confirm' => '确定要删除这个视频吗?' | |
) | |
); |
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 reverse($arr, $len, $m){ | |
$k = 0; | |
for($i = 0; $i < $m; $i++){ | |
$k = 1; | |
$temp = $arr[$i]; | |
while(($k*$m+$i) % $len != $i){ | |
$arr[($k-1)*$m+$i] = $arr[$k*$m+$i]; | |
$k++; | |
} |
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
<html> | |
<head> | |
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script> | |
<script type="text/javascript"> | |
function loadDoc(url) { | |
var xmlhttp = null; | |
if (window.XMLHttpRequest) { | |
xmlhttp = new XMLHttpRequest(); | |
} else { | |
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); |
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
#include <bits/stdc++.h> | |
using namespace std; | |
/* clang-format off */ | |
/* TYPES */ | |
#define ll long long | |
#define pii pair<int, int> | |
#define pll pair<long long, long long> | |
#define vi vector<int> |