Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jrweth's full-sized avatar

J. Reuben Wetherbee jrweth

  • University Of Pennsylvania
  • USA - Philadelphia, PA
View GitHub Profile
@jrweth
jrweth / apex-tree-checkbox.js
Last active April 21, 2021 11:42
The way to spruce up a Checkbox Item List into a Tree format in Oracle APEX.
/*!
* apex-tree-checkbox. The way to spruce up a Checkbox Item List into a Tree format in Oracle APEX.
*
* Copyright (c) 2014 J. Reuben Wetherbee
* http://jrweth.com
*
* Licensed under MIT
* http://www.opensource.org/licenses/mit-license.php
*
* Launch : October 2014
@jrweth
jrweth / pennsound-custom-css.css
Last active December 20, 2016 18:53
Modification of the Jplayer Jukebox to load tracks as needed and grab meta-data from media.sas
<style type="text/css">
.jp-jukebox .jp-gui-bg {
background-color:#f3f2f4 !important;
}
.jp-app-bar, .jp-toggles {
display:none !important;
}
.faked-jp-page-btn-play, .faked-jp-page-btn-pause {
@jrweth
jrweth / GetFontSizeForCharsInSetWidth.js
Created October 21, 2016 16:56
Function to calculate the font-size to fit a given number of characters into a given pixel width.
/**
* Gets the font size needed to cram a given number of Characters into a setWidth
*
* This function works by actually inserting some pixels into the page and then
* measuring the resulting element
*
* @param numChars int Number of characters you want to fit
* @param setWidthPx int Number of pixels you want the characters to fit into
* @param options {
* tagName string the tag name to place the characters in for measuring (default "div")
@jrweth
jrweth / apex-tree-state-saver.js
Created October 29, 2014 20:19
Script to save the state of an Oracle APEX tree
/*!
* apex-tree-state saver. The way to spruce up a Checkbox Item List into a Tree format in Oracle APEX.
*
* Copyright (c) 2014 J. Reuben Wetherbee
* http://jrweth.com
*
* Licensed under MIT
* http://www.opensource.org/licenses/mit-license.php
*
* Launch : October 2014
@jrweth
jrweth / ApexInteractiveRepeatingHeader.js
Created July 3, 2014 13:13
Repeated Table Header for Oracle APEX Interactive Report
/**
* ApexInteractiveRepeatedHeader
* @author J. Reuben Wetherbee <jrweth@gmail.com>
*
* Takes the header row of an Oracle Apex Interactive Report and repeats throughout the table
*
* To initiate repeated header do the following:
*
* - upload this file in the "Application->Shared Components->Static Files" section
* - in the "edit page->javascript->file Url" reference the file "#APP_IMAGES#ApexInteractiveRepeatedHeader.js"
@jrweth
jrweth / ApexInteractiveFixedHeader.js
Created July 3, 2014 13:37
Oracle Apex Interactive Table fixed header javascript function for creating fixed headers
/**
* ApexInteractiveFixedHeader
* @author J. Reuben Wetherbee <jrweth@gmail.com>
*
*
* Modified from UltimateScrollingTable
* http://nevcal.com/eclectic/UltimateScrollingTable.html
*
* The fixed header works by making a copy of the table for the header to insure widths are consistent.
*