This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A Popup List class that supports multiple instances in Unity | |
// Popup list created by Eric Haines. | |
// Popup list Extended by Xiaohang Miao. ([email protected]) | |
public class Popup{ | |
private int selectedItemIndex = 0; | |
private bool isVisible = false; | |
private bool isClicked = false; | |
private static DropdownBox current; | |
public int List(Rect box, GUIContent[] items, GUIStyle boxStyle, GUIStyle listStyle) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var delay = 500; | |
var regex = /\?cid=(\d+)/; | |
var results = {}; | |
$(".instructor_endorsed_sr").each(function(i, o) { | |
var iid = setTimeout(function(){ | |
o.click(); | |
// On threads with multiple answers, only first person gets credit? | |
var name = $("#s_answer .post_region_actions .user_name").first().text() || "Anonymous"; |