Skip to content

Instantly share code, notes, and snippets.

View hisk's full-sized avatar
💭
I may be slow to respond.

Nick V. hisk

💭
I may be slow to respond.
  • SEA
View GitHub Profile
import React from "react";
import { BrowserRouter as Router, Route } from "react-router-dom";
import routes from "./routes";
import withTracker from "./withTracker";
import "bootstrap/dist/css/bootstrap.min.css";
import "./shards-dashboard/styles/shards-dashboards.1.1.0.min.css";
import { DefaultLayout } from "./layouts";
<object style="width: 100%; min-height: 600px;" data="Your PDF URL." type="application/pdf">
<iframe src="Your PDF URL."></iframe>
</object>
<script type="text/javascript">
(function($) {
$(document).ready(function() {
$('#my-custom-tabs .et_pb_tab_1').click(function() {
window.open('Your PDF URL here.', '_blank')
});
});
})(jQuery)
</script>