Skip to content

Instantly share code, notes, and snippets.

View meysam2594's full-sized avatar

Meysam Shobeiri meysam2594

  • London
View GitHub Profile
@labboy0276
labboy0276 / Bootstrap Modal Print
Last active February 25, 2023 16:20
Bootstrap Modal Print
How to print a Bootstrap Modal (this was for Drupal 7 site as a FYI):
Add this to the modal
<button type="button" class="btn btn-default print" onClick="window.print();return false">Print</button>
Create a JS file and do this:
( function($) {
$(document).ready(function(){
// Add Print Classes for Modal
$('.modal').on('shown.bs.modal',function() {
@nomanr
nomanr / introrx.md
Created August 27, 2018 06:41 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing