博客主页
文章

Count:

计 64 篇
289
免费部署个人主页【少女心】
免费部署个人主页【少女心】
分类: 技术
简介:示例前言在此之前,我们已经使用了 Vercel,并且已经配置了 ChatGPT的 web版本。这一次,我们希望为您提供一个更加简便的,单页的个人网页注意事项步骤fork项目点击这里登录Vercel并导入项目点击这里ps后续也会上传其他的源码,记得关注我的Github哦~
172
美区苹果ID
美区苹果ID
分类: 简文
简介:操作美区ID注册简单,这里我们可以用国内的手机号进行接码。购买付费App余额创建了美区ID,面对美区的付费应用我们主要使用礼品卡进行充值,礼品卡可以在莫付宝进行购买付款方式这里我们可以使用虚拟信息生成网站 - 隐藏 -
206
禁止F12和右键
禁止F12和右键
分类: 技术
简介:示例代码JS代码 // Listen for the "keydown" event on the document document.addEventListener("keydown", function(event) { // Check if the pressed key is F12 (keyCode 123) if (event.keyCode === 123) { // Create a new <div> element for the message var messageDiv = document.createElement("div"); messageDiv.className = "message div"; // Set the content of the <div> messageDiv.textContent = "代码不好看~"; // Append the <div> to the body document.body.appendChild(messageDiv); // Remove the <div> after a few seconds (optional) setTimeout(function() { document.body.removeChild(messageDiv); }, 3000); // Remove after 3 seconds (adjust as needed) } }); // Listen for the "contextmenu" event on the document document.addEventListener("contextmenu", function(event) { // Prevent the default right click context menu event.preventDefault(); // Show the right click prompt showPrompt("代码不好看~"); }); // Function to show a prompt function showPrompt(message) { // Create a new <div> element for the message var messageDiv = document.createElement("div"); messageDiv.className = "message div"; // Set the content of the <div> messageDiv.textContent = message; // Append the <div> to the body document.body.appendChild(messageDiv); // Remove the <div> after a few seconds (optional) setTimeout(function() { document.body.removeChild(messageDiv); }, 3000); // Remove after 3 seconds (adjust as needed) }CSS /* Styles specific to the message div */ .message div { position: fixed; bottom: 20px; left: 50%; transform: translateX( 50%); padding: 10px; background color: #ffcccc; border: 1px solid #e74c3c; color: #e74c3c; border radius: 5px; z index: 9999; /* Ensure it's above other elements */
195
进站显示IP
进站显示IP
分类: 技术
简介: <div id="fps" style="z index:5;position:fixed;bottom:3px;left:3px;color:#2196F3;font size:10px;"> </div> <script type="text/javascript" src="https://cdn.jsdelivr.net/gh/kaliisra/myblogstatic/kehuduan js/fetch.min.js"> </script> <script src="https://cdn.gmit.vip/layer/3.1.1/layer.js" type="text/javascript" charset="utf 8"> </script> <script> $(function() { if ( /*getCookie('msg') !=*/ 1) { var t = document.createElement("a"); t.href = document.referrer; var msgTitle = t.hostname; var name = t.hostname.split(".")[1]; if ("" !== document.referrer) { switch (name) { case 'bing': msgTitle = '必应搜索'; break; case 'baidu': msgTitle = '百度搜索'; break; case 'so': msgTitle = '360 搜索'; break; case 'google': msgTitle = '谷歌搜索'; break; case 'sm': msgTitle = '神马搜索'; break; case 'sogou': msgTitle = '搜狗搜索'; break; default: msgTitle = t.hostname; }; }; var time = (new Date).getHours(); var msg = ''; 23 < time || time <= 5 ? msg = "你是夜猫子呀?这么晚还不睡觉,明天起的来嘛?": 5 < time && time <= 7 ? msg = "早上好!一日之计在于晨,美好的一天就要开始了!": 7 < time && time <= 11 ? msg = "上午好!工作顺利嘛,不要久坐,多起来走动走动哦!": 11 < time && time <= 14 ? msg = "中午了,工作了一个上午,现在是午餐时间!": 14 < time && time <= 17 ? msg = "午后很容易犯困呢,今天的运动目标完成了吗?": 17 < time && time <= 19 ? msg = "傍晚了!窗外夕阳的景色很美丽呢,最美不过夕阳红~": 19 < time && time <= 21 ? msg = "晚上好,今天过得怎么样?": 21 < time && time <= 23 && (msg = "已经这么晚了呀,早点休息吧,晚安~"); $.ajax({ type: "get", url: "https://api.gmit.vip/Api/UserInfo/", async: true, success: function(data) { window.info = data; layer.msg("Hi~ 来自" + data.data.location + '~<br/>通过 ' + msgTitle + ' 进来的朋友!<br/>使用 ' + data.data.os + "<br/>" + data.data.browser + ' 访问本站!' + '<br/>' + msg); var showFPS = (function() { var requestAnimationFrame = window.requestAnimationFrame window.msRequestAnimationFrame || function(callback) { window.setTimeout(callback, 1000 / 60); }; var e, pe, pid, fps, last, offset, step, appendFps; fps = 0; last = Date.now(); step = function() { offset = Date.now() last; fps += 1; if (offset >= 1000) { last += offset; appendFps(fps); fps = 0; }; requestAnimationFrame(step); }; appendFps = function(fps) { var settings = { timeout: 5000, logError: true }; //$('#fps').html('<span style="float:left;">' + fps + 'FPS</span><br/><span style="float:left">' + window.info.data.os + '</span><br/><span style="float:left;margin top:1px;">' + window.info.data.browser + '</span><br/><span style="float:left;margin top:1px;">' + window.info.data.location + '</span><br/><span style="float:left;margin top:1px;"></span>'); }; step(); })(); } }); }; }); </script>
191
Android简单加运算
Android简单加运算
分类: 技术
简介:calculate「layout部分」<?xml version="1.0" encoding="utf 8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <EditText android:id="@+id/et1" android:layout_width="200dp" android:layout_height="50dp" android:hint="请输入数字" android:textSize="20sp"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="+" android:textSize="20sp"/> <EditText android:id="@+id/et2" android:layout_width="200dp" android:layout_height="50dp" android:hint="请输入数字" android:textSize="20sp"/> <Button android:id="@+id/btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="计算" android:textSize="20sp"/> <TextView android:id="@+id/txt" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="" android:textSize="20sp"/> </LinearLayout>MainActivity变量private EditText et1,et2; private TextView txt;计算//获取页面中组件对象 et1=(EditText) findViewById(R.id.et1); et2=(EditText) findViewById(R.id.et2); txt=(TextView) findViewById(R.id.txt); Button button=(Button) findViewById(R.id.btn); //添加监听事件 button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { int sum,num1,num2; if (et1.getText().toString().length()>0&&et2.getText().toString().length()>0){ num1=Integer.parseInt(et1.getText().toString()); num2=Integer.parseInt(et2.getText().toString()); sum=num1+num2; txt.setText(String.valueOf(sum)); }else { Toast.makeText(MainActivity.this,"没有输入数值",Toast.LENGTH_LONG).show(); } } });
博客主页 数据猫 漫游于星空的数据猫
技术支持 CC 数据猫. 2025
打赏图
打赏博主
欢迎
欢迎
欢迎访问数据猫
搜 索
足 迹
分 类
  • 简文
  • 技术
  • 娱乐