forked from BlueSkyXN/KIENG-FigureBed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
446 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,228 @@ | ||
<!DOCTYPE html> | ||
<html lang='zh-cn'> | ||
<head> | ||
<meta charset='UTF-8'> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> | ||
<title>全球CDN图床 By SKY聚合图床 - 搜狗图床 360图床</title> | ||
|
||
<link rel='stylesheet' href='https://cdn.bootcss.com/normalize/5.0.0/normalize.min.css'> | ||
<script src="https://cdn.bootcss.com/jquery/3.3.0/jquery.min.js"></script> | ||
<style> | ||
html,body {height: 100%;margin: 0;padding: 0;}body {font-family: 'lucida grande', 'lucida sans unicode', lucida, helvetica, 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;align-items: center;display: flex;}a{text-decoration:none;}#container {max-width: 400px;flex-basis: 100%;margin: 0 auto;background: #FFF;border-radius: 10px;box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);-webkit-box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);overflow: hidden;}#container #hero-img {width: 100%;height: 200px;background: #007bff;}#container #profile-img {width: 160px;height: 160px;margin: -80px auto 0 auto;}#container #profile-img img {width: 100%;background: #FFF;border-radius: 50%;}#container #content {text-align: center;width: 320px;margin: 0 auto;padding: 0 0 50px 0;}#container #content h1 {font-size: 29px;font-weight: 500;margin: 30px 0 0 0;}#container #content p {font-size: 18px;font-weight: 400;line-height: 1.4;color: #666;margin: 15px 0 40px 0;}#container #content a {color: #CCC;font-size: 14px;margin: 0 10px;transition: color .3s ease-in-out;-webkit-transition: color .3s ease-in-out;line-height: 40px;}#container #content a:hover {color: #007bff;}.btn{background: none repeat scroll 0 0 #1BA1E2; border: 0 none; border-radius: 2px; color: #FFFFFF !important; cursor: pointer; font-family: "Open Sans","Hiragino Sans GB","Microsoft YaHei","WenQuanYi Micro Hei",Arial,Verdana,Tahoma,sans-serif; font-size: 14px; padding: 6px 10%;}.btn:hover,.yanshibtn:hover{background: none repeat scroll 0 0 #9B59B6; border: 0 none; border-radius: 2px; color: #FFFFFF!important; cursor: pointer; font-family: "Open Sans","Hiragino Sans GB","Microsoft YaHei","WenQuanYi Micro Hei",Arial,Verdana,Tahoma,sans-serif; font-size: 14px; padding: 8px 10%;} | ||
.imgType{display: none;} | ||
#images img{width: 100%} | ||
#imgurl input{width: 100%} | ||
#imgurl,#progress{display: none;} | ||
|
||
@-webkit-keyframes rotation{ | ||
from {-webkit-transform: rotate(0deg);} | ||
to {-webkit-transform: rotate(360deg);} | ||
} | ||
|
||
.Rotation{ | ||
-webkit-transform: rotate(360deg); | ||
animation: rotation 3s linear infinite; | ||
-moz-animation: rotation 3s linear infinite; | ||
-webkit-animation: rotation 3s linear infinite; | ||
-o-animation: rotation 3s linear infinite; | ||
} | ||
|
||
.img{border-radius: 250px;} | ||
</style> | ||
<script> | ||
var _hmt = _hmt || []; | ||
(function() { | ||
var hm = document.createElement("script"); | ||
hm.src = "https://hm.baidu.com/hm.js?7f0b72506567bb9e5d27951a7500ec40"; | ||
var s = document.getElementsByTagName("script")[0]; | ||
s.parentNode.insertBefore(hm, s); | ||
})(); | ||
</script> | ||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X1VBFQ2VXJ"></script> | ||
<script> | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag(){dataLayer.push(arguments);} | ||
gtag('js', new Date()); | ||
|
||
gtag('config', 'G-X1VBFQ2VXJ'); | ||
</script> | ||
</head> | ||
<body> | ||
<div id='container'> | ||
<div id='hero-img'> | ||
</div> | ||
<div id='profile-img'> | ||
<img src='https://ae01.alicdn.com/kf/U86be0ebc85004924a57b3f81c8091f51Y.jpg' id="imgLoading" class="Rotation img" title="显示与隐藏"/> | ||
</div> | ||
<div id='content'> | ||
<h2>全球CDN图床</h2> | ||
<h5>搜狗图床 360图床</h5> | ||
<h10><a href="https://imgup.000714.xyz/jd.html" style="color:#999;" title="京东图床">京东图床</a><a href="https://imgup.000714.xyz/ali.html" style="color:#999;" title="阿里图床">阿里图床</a><a href="https://imgup.000714.xyz/sg.html" style="color:#999;" title="搜狗图床">搜狗图床</a><a href="https://imgup.000714.xyz/sh.html" style="color:#999;" title="搜狐图床">搜狐图床</a><a href="https://imgup.000714.xyz/tt.html" style="color:#999;" title="头条图床">头条图床</a><a href="https://imgup.000714.xyz/58.html" style="color:#999;" title="58图床">58图床</a><a href="https://imgup.000714.xyz/kefu.html" style="color:#999;" title="KF图床">KF图床</a><a href="https://imgup.000714.xyz/wy.html" style="color:#999;" title="网易图床">网易图床</a><a href="https://imgup.000714.xyz/qq.html" style="color:#999;" title="腾讯图床">腾讯图床</a><a href="https://imgup.000714.xyz/hl.html" style="color:#999;" title="葫芦图床">葫芦图床</a><a href="https://imgup.000714.xyz/360.html" style="color:#999;" title="360图床">360图床</a> | ||
<br>Copyright © 2020<span id="timeyear"></span> <a href="https://www.blueskyxn.com/" style="color:#999;" title="苍穹の下">BlueSkyXN</a> | ||
<br>All Rights Reserved | ||
<br><a href="https://www.blueskyxn.com/" style="color:#999;" title="苍穹の下">博客·苍穹の下</a> <a href="https://www.blueskyxn.com/202102/4030.html" style="color:#999;" title="苍穹の下">About</a> | ||
</h10> | ||
<div id="progress"><progress max="100" value="0" id="pg"></progress></div> | ||
<p class="imgType" id="imgType"></p> | ||
<form id="form1"> | ||
<a href='javascript:void(0)' id="sougouImg" onclick="update('sougou')" class="btn btn-default" rel='nofollow'>搜狗图床</a><a href='javascript:void(0)' id="soImg" onclick="update('so')" class="btn btn-default" rel='nofollow'>360 图床</a> | ||
<input type="file" id="file" name="file" onchange="sc($('#imgType').attr('imgType'));" style="display:none" accept="image/*"> | ||
</form> | ||
<div class="imgContent" id="imgContent"> | ||
<div id="images"></div> | ||
<div id="imgurl"> | ||
<code>ImgUrl:</code> | ||
<input onclick="oCopy(this)" value="" id="Imgs_url"> | ||
<code>HtmlUrl:</code> | ||
<input onclick="oCopy(this)" value="" id="Imgs_html"> | ||
<code>Ubb:</code> | ||
<input onclick="oCopy(this)" value="" id="Imgs_Ubb"> | ||
<code>Markdown:</code> | ||
<input onclick="oCopy(this)" value="" id="Imgs_markdown"> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
</body> | ||
<script type="text/javascript"> | ||
/** | ||
* 注意原作者没有做本地化 使用的API藏在apis.yum6.cn里面 | ||
* https://github.com/dalaolala/4to1pic | ||
* https://tools.yum6.cn/Tools/Images | ||
* https://apis.yum6.cn/wiki/detail/5bd44db88e975/5bd7f16aa33d7.html | ||
*/ | ||
|
||
function update(type){ | ||
$('#file').val(''); | ||
$('#imgType').attr({ | ||
imgType: type, | ||
}); | ||
file.click(); | ||
|
||
} | ||
|
||
|
||
function sc(type){ | ||
if(!type){return false;} | ||
var animateimg = $("#file").val(); | ||
$('#pg').val('0'); | ||
var imgarr=animateimg.split('\\'); | ||
var myimg=imgarr[imgarr.length-1]; | ||
var houzui = myimg.lastIndexOf('.'); | ||
var ext = myimg.substring(houzui, myimg.length).toUpperCase(); | ||
var file = $('#file').get(0).files[0]; | ||
if(!file){return false;} | ||
var fileSize = file.size; | ||
|
||
switch(type){ | ||
case 'sougou': | ||
var maxSize = 2097152; | ||
break; | ||
case 'baidu': | ||
var maxSize = 2097152; | ||
break; | ||
case 'so': | ||
var maxSize = 2097152; | ||
break; | ||
case 'sina': | ||
var maxSize = 10485760; | ||
break; | ||
default: | ||
var maxSize = 10485760; | ||
} | ||
if(ext !='.PNG' && ext !='.GIF' && ext !='.JPG' && ext !='.JPEG' && ext !='.BMP'){ | ||
parent.alert('文件类型错误,请上传图片类型');return false; | ||
}else if(parseInt(fileSize) >= parseInt(maxSize)){ | ||
parent.alert('上传的文件不能超过'+maxSize/1024/1024+'MB');return false; | ||
}else{ | ||
$('#imgLoading').attr('src','https://ae03.alicdn.com/kf/H2256e6bfbb0d463388238e0629c36012T.jpg'); | ||
var data = new FormData($('#form1')[0]); | ||
var YoungxjApisToken = 'f07b711396f9a05bc7129c4507fb65c5'; | ||
switch(type){ | ||
case 'sougou': | ||
var apiUrl = 'https://apis.yum6.cn/api/5bd7f16aa33d7'; | ||
break; | ||
case 'baidu': | ||
var apiUrl = 'https://apis.yum6.cn/api/5bd828881f92b'; | ||
break; | ||
case 'so': | ||
var apiUrl = 'https://apis.yum6.cn/api/5bd90750c3f77'; | ||
break; | ||
case 'sina': | ||
var apiUrl = 'https://apis.yum6.cn/api/5bd44dc94bcfc'; | ||
break; | ||
default: | ||
return false; | ||
}; | ||
$('#progress').show(); | ||
$.ajax({ | ||
url: apiUrl+'?token='+YoungxjApisToken, | ||
type: 'POST', | ||
data: data, | ||
dataType: 'JSON', | ||
processData: false, | ||
contentType: false, | ||
xhr: function(){ | ||
var xhr = $.ajaxSettings.xhr(); | ||
if(onprogress && xhr.upload) { | ||
xhr.upload.addEventListener("progress" , onprogress, false); | ||
return xhr; | ||
} | ||
} | ||
}).done(function(ret){ | ||
if(ret['code']=='1'){ | ||
|
||
var img = '';var imgurl = ''; | ||
if(type!='sina'){var imgSrc = ret['data'];}else{var imgSrc = ret['data']['url'];} | ||
img += '<img src="'+imgSrc+'" name="sinaimg" id="sinaimg">'; | ||
|
||
$('#Imgs_url').val(imgSrc); | ||
$('#Imgs_html').val('<img src="'+imgSrc+'"/>'); | ||
$('#Imgs_Ubb').val('[img]'+imgSrc+'[/img]'); | ||
$('#Imgs_markdown').val(''); | ||
$('#images').html(img);$('#imgLoading').attr('src','https://p.pstatp.com/origin/ffb400026f09692a6b71'); | ||
$('#imgurl').show(); | ||
$('#progress').hide(); | ||
}else{ | ||
$('#progress').hide(); | ||
$('#imgLoading').attr('src','https://p.pstatp.com/origin/1378f000259f0b5ac0ae1'); | ||
parent.alert(ret['msg']); | ||
} | ||
|
||
}); | ||
return false; | ||
} | ||
} | ||
|
||
function onprogress(evt){ | ||
var loaded = evt.loaded; | ||
var tot = evt.total; | ||
var per = Math.floor(100*loaded/tot); | ||
$('#pg').val(per); | ||
|
||
} | ||
function oCopy(obj){ | ||
obj.select(); | ||
document.execCommand("Copy"); | ||
} | ||
|
||
function browserRedirect(){ | ||
var sUserAgent = navigator.userAgent.toLowerCase(); | ||
var bIsIpad = sUserAgent.match(/ipad/i) == 'ipad'; | ||
var bIsIphone = sUserAgent.match(/iphone os/i) == 'iphone os'; | ||
var bIsMidp = sUserAgent.match(/midp/i) == 'midp'; | ||
var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == 'rv:1.2.3.4'; | ||
var bIsUc = sUserAgent.match(/ucweb/i) == 'web'; | ||
var bIsCE = sUserAgent.match(/windows ce/i) == 'windows ce'; | ||
var bIsWM = sUserAgent.match(/windows mobile/i) == 'windows mobile'; | ||
var bIsAndroid = sUserAgent.match(/android/i) == 'android'; | ||
if(bIsIpad || bIsIphone || bIsMidp || bIsUc7 || bIsUc || bIsCE || bIsWM || bIsAndroid ){ | ||
return 1; | ||
} | ||
}; | ||
$(document).ready(function(){ | ||
$('#imgLoading').click(function() {$("#imgContent").toggle();}); | ||
}); | ||
</script> | ||
</html> |
Oops, something went wrong.