Unverified Commit c6db3eef authored by Hira Fatima's avatar Hira Fatima Committed by GitHub
Browse files

Add files via upload

parent 9baf4672
This diff is collapsed.
{
"browser_action": {
"default_icon": "img/icon_active.png",
"default_popup": "html/popup.html",
"default_title": "Sipotek Visual Inspection"
},
"description": "Shenzhen Sipotek Technology is a automatic visual inspection machine ,automated vision inspection system from china.",
"icons": {
"128": "img/icon_128.png",
"16": "img/icon_16.png"
},
"manifest_version": 2,
"name": "Sipotek Visual Inspection",
"version": "1.1"
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Sipotek Visual Inspection - Chrome Extension</title>
<link rel="stylesheet" href="../css/bootstrap.min.css">
<link rel="stylesheet" href="../css/style.css">
<script type="text/javascript" src="../js/jquery-3.5.1.min.js"></script>
<script type="text/javascript" src="../js/popup.js"></script>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="https://www.sipotek.net/" target="_blank">Sipotek Visual Inspection</a>
</div>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col-xs-12 col-md-8 box ">
<p>
<h2>APPLICATIONS</h2>
<ul class="list">
<li><a href="https://www.sipotek.net/measuring/" target="_blank">Measuring & Gauging Machine</a></li>
<li><a href="https://www.sipotek.net/colour-matching-verification/" target="_blank">Surface Inspection</a></li>
<li><a href="https://www.sipotek.net/pattern-recognition/" target="_blank">Pattern Recognition</a></li>
<li><a href="https://www.sipotek.net/pre-processing/" target="_blank">Pre-processing</a></li>
<li><a href="https://www.sipotek.net/presence-verification/" target="_blank">Presence Verification</a></li>
</ul>
</p>
</div>
</div>
</div>
</body>
</html>
$( document ).ready(function() {
if(isPluginActive()){
$("#active").show();
$("#disabled").hide();
}else{
$("#active").hide();
$("#disabled").show();
}
$(document).on('click',"#activatePlugin",function() {
console.log("Disable plugin");
enablePlugin();
$("#disabled").hide();
$("#active").show();
return false;
});
$(document).on('click',"#disablePlugin",function() {
console.log("Resume plugin");
disablePlugin();
$("#active").hide();
$("#disabled").show();
return false;
});
});
function enablePlugin(){
setLocalStorageValue("status","true");
chrome.browserAction.setIcon({
path : "../img/icon_active.png"
});
}
function disablePlugin(){
setLocalStorageValue("status","false");
chrome.browserAction.setIcon({
path : "../img/icon_active.png"
});
}
function isPluginActive(){
return getBooleanLocalStorageValue("status");
}
function getBooleanLocalStorageValue(value){
var value = localStorage.getItem(value);
if( value == "false" ){
return false;
}else{
return true;
}
}
function setLocalStorageValue(key,value){
localStorage.setItem(key, value)
}
body{
width: 450px;
height: 200px;
padding-top:50px;
background:#f1f1f1;
}
.box {
margin-top: 10px;
padding: 10px 20px 0px 20px;
margin: 0 0 10px;
border: 0;
background: #fff;
box-shadow: 0 1px 2px rgba(0,0,0,.1);
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 10px 20px 0px 20px;
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment