1
0
mirror of https://github.com/Daichimarukana/uwuzu.git synced 2026-06-05 03:24:41 +00:00

uwuzu v1.3.4 new_planet

This commit is contained in:
Daichimarukana
2024-03-26 22:48:57 +09:00
parent e0b3b93414
commit ea4ca882da
92 changed files with 3192 additions and 1567 deletions
+5 -5
View File
@@ -1,8 +1,8 @@
window.onload = function(){
var url = new URL(window.location.href);
window.onload = function () {
var url = new URL(window.location.href);
var ele = document.getElementsByTagName("body")[0];
var n = Math.floor(Math.random() * 3); // 3枚の画像がある場合
ele.style.backgroundImage = "url("+url.protocol+"//"+url.hostname+"/img/titleimg/"+n+".png)";
var ele = document.getElementsByTagName("body")[0];
var n = Math.floor(Math.random() * 3); // 3枚の画像がある場合
ele.style.backgroundImage = "url(" + url.protocol + "//" + url.hostname + "/img/titleimg/" + n + ".png)";
}
+2
View File
File diff suppressed because one or more lines are too long
+24 -1
View File
@@ -1,4 +1,4 @@
$(document).on('click', '.mini_irobtn', function(event) {
$(document).on('click', '.mini_irobtn', function (event) {
event.preventDefault();
mother = $(this).parent();
mother2 = $(mother).parent();
@@ -7,4 +7,27 @@ $(document).on('click', '.mini_irobtn', function(event) {
$(mother2).next('.nsfw_main').removeClass('nsfw_main');
$(mother2).hide();
});
$(document).on('click', '#ueuse_image', function (event) {
var imgLink = $(this).attr('src');
var modal = $('#Big_ImageModal');
var modalMain = $('.modal-content');
var modalimg_zone = $('#Big_ImageMain');
$(modalimg_zone).attr('src',imgLink);
modal.show();
modalMain.addClass("slideUp");
modalMain.removeClass("slideDown");
modal.on('click', function() {
modalMain.removeClass("slideUp");
modalMain.addClass("slideDown");
window.setTimeout(function(){
modal.hide();
}, 150);
});
});
+32 -32
View File
@@ -2,19 +2,19 @@
const ua = window.navigator.userAgent;
/*browser*/
if(ua.indexOf('Edge') != -1 || ua.indexOf('Edg') != -1) {
if (ua.indexOf('Edge') != -1 || ua.indexOf('Edg') != -1) {
user_agent_browser = 'Microsoft_Edge';
} else if(ua.indexOf('Trident') != -1 || ua.indexOf('MSIE') != -1) {
} else if (ua.indexOf('Trident') != -1 || ua.indexOf('MSIE') != -1) {
user_agent_browser = 'Microsoft_Internet_Explorer';
} else if(ua.indexOf('OPR') != -1 || ua.indexOf('Opera') != -1) {
} else if (ua.indexOf('OPR') != -1 || ua.indexOf('Opera') != -1) {
user_agent_browser = 'Opera';
} else if(ua.indexOf('Chrome') != -1) {
} else if (ua.indexOf('Chrome') != -1) {
user_agent_browser = 'Google_Chrome';
} else if(ua.indexOf('Firefox') != -1) {
} else if (ua.indexOf('Firefox') != -1) {
user_agent_browser = 'FireFox';
} else if(ua.indexOf('Safari') != -1) {
} else if (ua.indexOf('Safari') != -1) {
user_agent_browser = 'Safari';
} else if(ua.indexOf('NintendoBrowser') != -1) {
} else if (ua.indexOf('NintendoBrowser') != -1) {
user_agent_browser = 'NintendoBrowser';
} else {
user_agent_browser = 'Other';
@@ -22,62 +22,62 @@ if(ua.indexOf('Edge') != -1 || ua.indexOf('Edg') != -1) {
/*OS*/
const ua2 = ua.toLowerCase();
if(ua2.indexOf("windows nt") !== -1) {
if (ua2.indexOf("windows nt") !== -1) {
user_agent_os = "Microsoft_Windows_NT";
} else if(ua.indexOf("Android") !== -1) {
} else if (ua.indexOf("Android") !== -1) {
user_agent_os = "Android";
} else if(ua.indexOf("iPhone") !== -1){
} else if (ua.indexOf("iPhone") !== -1) {
ua.match(/iPhone OS (\w+){1,4}/g);
var iosv=(RegExp.$1.replace(/_/g, '.')).slice(0,4);
if(iosv >= 6.0) {
var iosv = (RegExp.$1.replace(/_/g, '.')).slice(0, 4);
if (iosv >= 6.0) {
user_agent_os = "iOS_6_Over";
} else {
user_agent_os = "iOS_6_Under";
}
} else if (ua.match(/Linux/)) {
user_agent_os = "Linux";
} else if(ua.indexOf("ipad") !== -1 || ua.indexOf("Mac OS X") !== -1 && typeof document.ontouchstart !== 'undefined') {
user_agent_os = "Linux";
} else if (ua.indexOf("ipad") !== -1 || ua.indexOf("Mac OS X") !== -1 && typeof document.ontouchstart !== 'undefined') {
user_agent_os = "iPad";
} else if(ua.indexOf("Mac OS X") !== -1) {
} else if (ua.indexOf("Mac OS X") !== -1) {
user_agent_os = "mac_OS";
} else if (ua.match(/^.*\s([A-Za-z]+BSD)/)) {
user_agent_os = RegExp.$1;
user_agent_os = RegExp.$1;
} else if (ua.match(/SunOS/)) {
user_agent_os = "Solaris";
user_agent_os = "Solaris";
} else if (ua.match("Nintendo Wii")) {
user_agent_os = "Nintendo_Wii";
user_agent_os = "Nintendo_Wii";
} else if (ua.match("PlayStation 4")) {
user_agent_os = "SONY_PS4";
user_agent_os = "SONY_PS4";
} else if (ua.match("PlayStation 5")) {
user_agent_os = "SONY_PS5";
user_agent_os = "SONY_PS5";
} else if (ua.match("PlayStation Vita")) {
user_agent_os = "SONY_PSVita";
user_agent_os = "SONY_PSVita";
} else if (ua.match("Nintendo Switch")) {
user_agent_os = "Nintendo_Switch";
user_agent_os = "Nintendo_Switch";
} else if (ua.match("Windows Phone")) {
user_agent_os = "Windows_Phone";
user_agent_os = "Windows_Phone";
} else {
user_agent_os = 'Other';
}
/*SSL*/
if (location.protocol == 'http:') {
if (location.hostname == 'localhost'){
if (location.hostname == 'localhost') {
user_agent_ssl = "not_ssl";
}else{
} else {
user_agent_ssl = "not_ssl_bad";
}
} else if (location.protocol == 'https:') {
user_agent_ssl = "ssl";
user_agent_ssl = "ssl";
} else {
user_agent_ssl = "Other";
}
/*Cookie*/
if (navigator.cookieEnabled) {
user_agent_cookie = 'cookie_on';
user_agent_cookie = 'cookie_on';
} else {
user_agent_cookie = 'cookie_off';
user_agent_cookie = 'cookie_off';
}
/*Main Access check*/
@@ -96,7 +96,7 @@ if (user_agent_browser == 'Microsoft_Internet_Explorer' || user_agent_browser ==
} else if (user_agent_ssl == 'not_ssl_bad') {
user_agent_access = 'bad';
errcode = 'NONE_SSL_SERVER';
}else{
} else {
user_agent_access = 'ok';
errcode = 'NONE_ERROR';
}
@@ -110,10 +110,10 @@ console.log('access : '+user_agent_access);
console.log('errorcode : '+errcode);
*/
if (user_agent_access == 'bad'){
if (user_agent_access == 'bad') {
setTimeout(link(), 0);
function link(){
location.href="../unsupported.php?errcode="+errcode+"&browser="+user_agent_browser+"&os="+user_agent_os+"&cookie="+user_agent_cookie+"&ssl="+user_agent_ssl+""
function link() {
location.href = "../unsupported.php?errcode=" + errcode + "&browser=" + user_agent_browser + "&os=" + user_agent_os + "&cookie=" + user_agent_cookie + "&ssl=" + user_agent_ssl + ""
}
}