Commit 9b0421fd authored by Ahoy's avatar Ahoy

Hash

parent a2b2c978
Pipeline #42896939 passed with stages
in 48 seconds
......@@ -105,13 +105,16 @@
var exec = /(film\/|movie\/).*?([0-9]{3,7})\//gi.exec(title.value);
if (exec && exec[2]) {
yohoho.dataset.kinopoisk = exec[2];
window.location.hash = '#' + yohoho.dataset.kinopoisk;
}
}
else if (/^\d+$/.test(title.value)) {
yohoho.dataset.kinopoisk = title.value;
window.location.hash = '#' + title.value;
}
else {
yohoho.dataset.title = title.value;
window.location.hash = '#' + title.value;
}
return yo();
}
......
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