This file contains hidden or 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
# Power analysis: global public opinion survey | |
library(fabricatr) | |
library(estimatr) | |
library(dplyr) | |
library(pbapply) | |
library(parallel) | |
library(pbmcapply) | |
# Set seed | |
set.seed(3492) |
This file contains hidden or 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
# Function to build your own city art print map | |
# Original code by Josh McCrain http://joshuamccrain.com/tutorials/maps/streets_tutorial.html | |
# Updates by Baobao Zhang | |
# 3 November 2020 | |
# Load packages | |
library(sf) | |
library(tidyverse) | |
library(osmdata) | |
library(showtext) |
This file contains hidden or 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
// Put this on the addOnload function of the Javascript for the question with the slider. | |
// From user @DRRTGCC https://www.qualtrics.com/community/discussion/932/no-default-on-graphic-sliders-sliders-in-general | |
var s = jQuery("#"+this.questionId); | |
var firstclick=0; | |
s.find(".handle").hide(); | |
s.find(".track").on("mouseover", function() { | |
s.find(".handle").show(); | |
if (firstclick==0) { |
This file contains hidden or 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
Qualtrics.SurveyEngine.addOnload(function() | |
{ | |
jQuery( function() { | |
jQuery( "#accordion" ).accordion({ | |
active:false, | |
collapsible: true | |
}); | |
} ); | |
}); |