模块:R-18:修订间差异

来自SS唯基
跳到导航 跳到搜索
(创建模块R-18 测试)
 
Zev讨论 | 贡献
无编辑摘要
 
(未显示同一用户的16个中间版本)
第1行: 第1行:
<script language="javascript">
local p = {}
if(!$.cookie("x18"))
function p.r18()
(function(){
return '<span style="position:fixed;top: 0px;left: 0px;z-index:2">[[File:本文不适合未成年人浏览.png|link=首页|点此返回主页]] </span>'
var css1="width:100%;height:100%;position:fixed;top:0;background:rgba(0,0,0,0.9);z-index:9999",
end
    css2="position:relative;margin:0 auto;margin-top:-40px;top:50%;width:240px;height:80px;background:#444;color:white;border:solid 1px rgb(118,195,255);border-radius:4px;box-shadow:0 0 5px rgb(118, 195, 255);padding:12px",
return p
    css3="width:72px;height:20px;border-radius:4px;padding:4px;text-align:center;font-size:11pt;float:left;margin-left:26px;cursor:pointer;box-shadow:#777 0 0 22px inset;",
    css4="position:relative;border:8px solid transparent;border-left:12px solid #fff;float:left;margin:2px 0";$(document.body).append(
  $("<div id=x18>").attr("style",css1)
  .append($("<div>",{style:css2})
    .append($('<div style="margin:12px">你是否已年满十八岁?</div>').prepend($("<div>",{style:css4})))
    .append($("<div>",{text:"是",style:css3+"background:rgb(57,238,0)",click:function(){$.cookie("x18",1);$("#x18").fadeOut(400,function(){this.remove()})}}))
    .append($("<div>",{text:"否",style:css3+"background:rgb(238,48,0);",click:function(){location="/"}}))
  )
);
})();
</script>
<meta name="robots" content="NOINDEX, NOFOLLOW" />

2014年5月20日 (二) 06:36的最新版本

此模块的文档可以在模块:R-18/doc创建

local p = {}
function p.r18()
return '<span style="position:fixed;top: 0px;left: 0px;z-index:2">[[File:本文不适合未成年人浏览.png|link=首页|点此返回主页]] </span>'
end
return p