|
@@ -108,9 +108,20 @@ function initFastLoad(_parent = false) {
|
|
|
var content = $(_data).find('.stag-content');
|
|
|
if(content) {
|
|
|
content = content.html();
|
|
|
- console.log(content);
|
|
|
+ content += '<script src="/js/yemi.js"></script>';
|
|
|
targetParent.html(content);
|
|
|
initFastLoad(targetParent);
|
|
|
+
|
|
|
+ // push state
|
|
|
+ var target = _a.href;
|
|
|
+ if(target.indexOf('//') !== -1) {
|
|
|
+ target = target.split('//')[1];
|
|
|
+ if(target.indexOf('/') !== -1) {
|
|
|
+ target = target.substr(target.indexOf('/') + 1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ window.top.history.pushState(target, null, '/mc/' + target);
|
|
|
+
|
|
|
}
|
|
|
else {
|
|
|
console.warn('Target page not found: ' + this.href);
|