IDEMPIERE-4161 Application Home Refinements. Minor increase of white template's background height. Hide webstore link if it is not up.
This commit is contained in:
parent
1f63f6f0d9
commit
8dec4fb537
|
@ -14,7 +14,7 @@ Author URI: http://www.bmlaurus.com
|
||||||
<script type="text/javascript" src="resources/jquery/jquery.js"></script>
|
<script type="text/javascript" src="resources/jquery/jquery.js"></script>
|
||||||
<title><%=Prop.getProperty(Prop.TITLE) %></title>
|
<title><%=Prop.getProperty(Prop.TITLE) %></title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body onload="checkWebstoreLinks()">
|
||||||
<div id="body" class="body">
|
<div id="body" class="body">
|
||||||
<div id="toolBar" class="toolBar">
|
<div id="toolBar" class="toolBar">
|
||||||
<div id="toolBar-title" class="toolBar-title">
|
<div id="toolBar-title" class="toolBar-title">
|
||||||
|
@ -140,5 +140,42 @@ Author URI: http://www.bmlaurus.com
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<script>
|
||||||
|
function checkWebstoreLinks() {
|
||||||
|
try {
|
||||||
|
var element = document.getElementById("main-requestBtns-btnReq");
|
||||||
|
var link = element.getElementsByTagName("a")[0];
|
||||||
|
var url = link.href;
|
||||||
|
checkLink(element, url);
|
||||||
|
|
||||||
|
element = document.getElementById("main-requestBtns-btnSendReq");
|
||||||
|
link = element.getElementsByTagName("a")[0];
|
||||||
|
url = link.href;
|
||||||
|
checkLink(element, url);
|
||||||
|
} catch (error) {}
|
||||||
|
}
|
||||||
|
|
||||||
|
function checkLink(element, url) {
|
||||||
|
var reader = new XMLHttpRequest();
|
||||||
|
//asynchronous is true
|
||||||
|
reader.open('get', url, true);
|
||||||
|
//check each time the ready state changes
|
||||||
|
//to see if the object is ready
|
||||||
|
reader.onreadystatechange = checkReadyState;
|
||||||
|
|
||||||
|
function checkReadyState() {
|
||||||
|
if (reader.readyState === 4) {
|
||||||
|
//check to see whether request for the file failed or succeeded
|
||||||
|
if ((reader.status == 200) || (reader.status === 0)) {
|
||||||
|
;
|
||||||
|
} else {
|
||||||
|
element.style.display = "none";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
reader.send(null);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -47,14 +47,14 @@ div.body{
|
||||||
padding-top: 70px;
|
padding-top: 70px;
|
||||||
}
|
}
|
||||||
#main-background{
|
#main-background{
|
||||||
height: 496px;
|
height: 520px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 1px;
|
top: 1px;
|
||||||
width: 810px;
|
width: 810px;
|
||||||
z-index: -1000;
|
z-index: -1000;
|
||||||
}
|
}
|
||||||
#main-background img{
|
#main-background img{
|
||||||
height: 496px;
|
height: 520px;
|
||||||
width: 810px;
|
width: 810px;
|
||||||
}
|
}
|
||||||
.topBtnHeader{
|
.topBtnHeader{
|
||||||
|
|
Loading…
Reference in New Issue