Skip to content

Instantly share code, notes, and snippets.

Last active March 27, 2019 00:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kikiriko200/7b9aad50b6ee6c3f7c0149123398a755 to your computer and use it in GitHub Desktop.
// Output for View
$('#use-count').numerator( {
easing: 'linear', // アニメーションの動き
duration: 1000, // アニメーションの時間(ms)
toValue: responce, // どこまでカウントアップするか
delimiter: ',', // 3桁ごとに区切る値
rounding: 0 // 小数点以下の桁数
var link = $('input[name="url"]').val();
$.ajax({ // json読み込み開始
type: 'GET',
url: ''+link+'&format=json',
dataType: 'json'
function(json) { //jsonの読み込みに成功した時
$("#status").html("<div class='notification is-success'><p>生成に成功しました。</p></div>");
var t = json["url"];
t = t.replace("","https://あ.ml");
function() { //jsonの読み込みに失敗した時
$("#status").html("<div class='notification is-danger'><p>生成に失敗しました。</p></div>");
$(document).ready(function(){ //カード削除ボタン
$(".delete1").on("click", function(){
$(".delete2").on("click", function(){
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment