Coder Social home page Coder Social logo

shyamal002 / mtconnect-agent-stylesheet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from trakhound/mtconnect-agent-stylesheet

0.0 0.0 0.0 416 KB

XML Stylesheet using Bootstrap for MTConnect Agents

License: MIT License

XSLT 96.44% JavaScript 3.21% CSS 0.35%

mtconnect-agent-stylesheet's Introduction

MTConnect-Agent-Stylesheet

XML Stylesheet for MTConnect Agents using Bootstrap. This provides a better appearance than the default stylesheet and also adds links to run Probe, Current, and Sample requests.

About

PC

[Agent Stylesheet PC]

Mobile

[Agent Stylesheet Mobile]

File Size

Just over 300 KB. This Includes the necessary files for jquery, bootstrap, and the logo image.

Installation

  1. Download the latest release
  2. Unzip the contents into the "Styles" folder for the MTConnect Agent.
  3. Edit the Agent's configuration file (ex. agent.cfg) to look for the stylesheets as shown below:

Agent.cfg

Files {
    styles {
        Path = ../styles
        Location = /styles/
    }
    Favicon {
        Path = ../styles/favicon.ico
        Location = /favicon.ico
    }
}

DevicesStyle { Location = /styles/Devices.xsl }

StreamsStyle { Location = /styles/Streams.xsl }

  1. Restart Agent
  2. Navigate to Agent's url to view

Customization

This stylesheet is easily customizable using the Custom.css file. Customizations can include any overrides of the standard bootstrap styles such as changing the colors of the panel headers. The logo and link can be changed by editing the following lines in both Devices.xsl and Streams.xsl as shown below:

<a class="navbar-brand" style="padding: 5px 20px;" href="http://www.mtconnect.org">
	<img alt="Brand" src="/styles/MTConnect-Logo.png" height="40"/>
</a>

Contributions

Contributions to this project are welcome and please feel free to contact us directly at [email protected].

License

This project is licensed under the MIT software license.

mtconnect-agent-stylesheet's People

Contributors

intolerance avatar patrickritchie 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.