Giter Site home page Giter Site logo

rz-sysinfo's Introduction

rz-sysinfo

A Web Component to provide some Sysinfo

provides some sys info as JSON data

Authors

Version

v0.1.0

License

MIT

API Reference

Parameters

    <rz-sysinfo
      network_info="y"
      sys_info="y"
      browser_info="y"
    >
    </rz-sysinfo>
Parameter Type Description
network_info string "y" or "n"
sys_info string "y" or "n"
browser_info string "y" or "n"

Installation

used folder structure

.
├── assets
│   ├── css
│   │   └── index.css
│   ├── img
│   │   ├── Screenshot
│   └── js
│       └── rz-sysinfo.js
├── favicon.ico
└── index.html

Usage/Examples

<!DOCTYPE html>
<html lang="en" data-theme="light">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="author" content="ZHENG Robert" />

    <title>Web Component</title>

    <meta name="description" content="Web Component for some sys info" />
    <meta name="version" content="v0.1.0" />
    <meta name="author" content="ZHENG Robert" />
    <meta name="date" content="2016-01-02T01:30:00+01:00" />

    <link rel="alternate icon" href="/assets/favicon.ico" />
    <link rel="shortcut icon" href="/assets/favicon.ico" type="image/x-icon" />

    <link
      href="./assets/css/index.css"
      rel="stylesheet"
      type="text/css"
      preload
    />
  </head>

  <body id="body">
    <main id="body">
      <h1>Web Component &raquo; rz-sysinfo &laquo;</h1>
      <article>
        <h2>A Web Component to provide some Sysinfo</h2>
        <p class="brief">provides some sys info as JSON data</p>
        <section>
          <h3>default</h3>

<pre>
&lt;rz-sysinfo id="sysinfo"
  network_info="y"
  sys_info="y"
  browser_info="y"
  data-result="{&quot;effectiveType&quot;:&quot;4g&quot;,&quot;rtt&quot;:null,&quot;downLink&quot;:10,&quot;downlinkMax&quot;:null,&quot;saveData&quot;:null,&quot;type&quot;:null,&quot;userLang&quot;:&quot;de&quot;,&quot;mem&quot;:8,&quot;cores&quot;:6}"&gt;
&lt;/rz-sysinfo&gt;
</pre>

<h4>Syntax</h4>
        <p>
            <pre class="code">&lt;rz-sysinfo id="sysinfo" network_info="y" sys_info="y" browser_info="y"&gt;&lt;/rz-sysinfo&gt;</pre>
        </p>
      </section>

      </article>
    </main>

    <rz-sysinfo id="sysinfo" network_info="y" sys_info="y" browser_info="y"></rz-sysinfo>
    <script src="./assets/js/rz-sysinfo.js" defer></script>

  </body>
</html>

Screenshots

Used By

This web component is used by the following web sites:

the end

🖖

(back to top)

rz-sysinfo's People

Contributors

zbbamboo avatar

Watchers

ZHENG Robert 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.