Giter Club home page Giter Club logo

geticpinfo's Introduction

备案信息展示插件

示例代码

<script>
!function(window) {
    window.__GETICPINFO__ = {
        websiteHost: '', // 不填将获取当前域名备案信息 这里可以填指定域名
        jqueryPath: '', // 自定义jquery路径 之前有引入则不再引入 默认是bootcdn 可不用改
        layerHeight: 'auto', // layer弹出层长度 默认自适应 可不用改
        isCenter: false, // 是否居中 默认不居中 选择居中将单独占用一行
        isShowInfo: true, // 是否点击备案号显示详细信息 false则不引入jquery和layer
        showIcon: true, // 是否显示图标
        icpIcon:"", // 自定义图标地址
        removeDecoration: true, // 是否去掉a标签下划线 建议去掉比较美观
        aColor: "", // 字体颜色
        cacheMode: 2, // 缓存本地方式 1为Cookie 2为localStorage
        cacheTime: 1 // 缓存本地时间(防止重复获取拉低速度) 单位:天 默认1天
    };
    document.write('');
    getIcpInfo_tag = document.createElement("script"), 
    getIcpInfo_tag.type = "text/javascript", 
    getIcpInfo_tag.async = true, 
    getIcpInfo_tag.src = "https://api.yya.gs/Api/getIcpInfo"; // 代码频繁更新,建议不要弄到本地
    var b = document.getElementsByTagName("script")[0];
    b.parentNode.insertBefore(getIcpInfo_tag, b);
}(window);
</script>

精简版,只显示备案号

<script>document.write(unescape("%3Cscript%20charset%3D%27utf-8%27%20src%3D%27https%3A//api.yya.gs/Api/getIcpInfoSimple%27%3E%3C/script%3E"));</script>

geticpinfo's People

Contributors

qiangmouren avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.