Skip to content

Instantly share code, notes, and snippets.

View albertshen's full-sized avatar

Albert albertshen

  • me
  • Shanghai.China
View GitHub Profile
@albertshen
albertshen / API.md
Created December 24, 2017 14:00 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@albertshen
albertshen / responsive-voice.js
Created December 15, 2016 09:32 — forked from anchetaWern/responsive-voice.js
responsive-voice.js
//Look for other responsivevoice instances
/*if (window.parent != null) {
var iframes = window.parent.document.getElementsByTagName('iframe');
for (var i = 0; i < iframes.length; i++) {
//iframes[i].style.width = "300px"
}
}*/
if (typeof responsiveVoice != 'undefined') {
console.log('ResponsiveVoice already loaded');