Skip to content

Instantly share code, notes, and snippets.

View sumeshkp18's full-sized avatar
💭
Learning things & Finding Solutions

SUMESH KP sumeshkp18

💭
Learning things & Finding Solutions
View GitHub Profile
<script>
$(document).ready(function () {
var $anchor = $('a');
$anchor.each(function () {
var href = $(this).attr('href');
if (href) {
if (href.indexOf('.pdf#page=') > -1) {
var newhref = href.replace('.pdf#page=', '.pdf#page');
$(this).attr('href', newhref);
}