|
|
Line 4: |
Line 4: |
| * CC BY-NC-SA | | * CC BY-NC-SA |
| **/ | | **/ |
− |
| |
− | /* Invoke jQuery */
| |
− | document.write('<script src="https://common.wjghj.cn/js/jquery"></script>');
| |
− | /* Window load finished */
| |
− | window.addEventListener("load", function(event) {
| |
− | // Variables
| |
− | var pageTile,
| |
− | pageName,
| |
− | backTo;
| |
− |
| |
− | pageTitle = $('body').attr('data-title');
| |
− | pageName = $('body').attr('data-pagename');
| |
− | backTo = $('body').attr('data-backto');
| |
− |
| |
− | if (pageTitle =='Mainpage' || pageTitle =='' || pageTitle == undefined) {
| |
− | pageTitle = 'Documentations Center';
| |
− | } else if (pageTitle == '404') {
| |
− | pageTitle = 'Page not found - 404 ERROR'
| |
− | }
| |
− |
| |
− | $('title').html(pageTitle + ' | 文档中心 | Wjghj Project');
| |
− |
| |
− | $('body').prepend('\
| |
− | <header><h1 id="firstHeading"> Welcome to Pagename!</h1>\
| |
− | <div id="subHeading">< Back to Doc Center.</div>\
| |
− | </header>\
| |
− | ').append('\
| |
− | <footer><div id="powered-by">Powered by Wjghj Project</div>\
| |
− | <div id="beiAn">bei an id</div>\
| |
− | </footer>\
| |
− | ');
| |
− |
| |
− | });
| |