Skip to content

Instantly share code, notes, and snippets.

View stphnwlkr's full-sized avatar

Stephen Walker stphnwlkr

View GitHub Profile
@stphnwlkr
stphnwlkr / overlap-card
Last active August 22, 2021 17:17
Overlap Post Card - Avada Theme
[fusion_builder_column type="1_1" layout="1_1" background_blend_mode="overlay" first="true" last="true" min_height="" hover_type="none" link="" border_position="all" element_content="" background_color="rgba(0,0,0,0)" align_content="flex-start" content_layout="column"][fusion_builder_row_inner][fusion_builder_column_inner type="1_1" layout="1_1" align_self="auto" content_layout="column" align_content="flex-start" valign_content="flex-start" content_wrap="wrap" spacing="" center_content="no" link="" target="_self" min_height="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" sticky_display="normal,sticky" class="" id="" order_medium="0" order_small="0" hover_type="none" border_color="" border_style="solid" box_shadow="no" box_shadow_blur="0" box_shadow_spread="0" box_shadow_color="" box_shadow_style="" background_type="single" gradient_start_position="0" gradient_end_position="100" gradient_type="linear" radial_direction="center center" linear_angle="180" background_color="" background_ima
[fusion_builder_container type="flex" hundred_percent="no" hundred_percent_height="min" hundred_percent_height_scroll="no" align_content="center" flex_align_items="flex-start" flex_justify_content="flex-start" hundred_percent_height_center_content="yes" equal_height_columns="no" container_tag="header" hide_on_mobile="small-visibility,medium-visibility,large-visibility" status="published" border_style="solid" box_shadow="no" box_shadow_blur="0" box_shadow_spread="0" gradient_start_position="0" gradient_end_position="100" gradient_type="linear" radial_direction="center center" linear_angle="180" background_position="center center" background_repeat="no-repeat" fade="no" background_parallax="none" enable_mobile="no" parallax_speed="0.3" background_blend_mode="none" video_aspect_ratio="16:9" video_loop="yes" video_mute="yes" absolute="off" absolute_devices="small,medium,large" sticky="off" sticky_devices="small-visibility,medium-visibility,large-visibility" sticky_transition_offset="0" scroll_offset="0" animation
[fusion_builder_container type="flex" hundred_percent="no" hundred_percent_height="min" hundred_percent_height_scroll="yes" align_content="space-evenly" flex_align_items="stretch" flex_justify_content="space-evenly" hundred_percent_height_center_content="yes" equal_height_columns="no" hide_on_mobile="small-visibility,medium-visibility,large-visibility" status="published" border_style="solid" box_shadow="no" box_shadow_blur="0" box_shadow_spread="0" gradient_start_position="0" gradient_end_position="100" gradient_type="linear" radial_direction="center center" linear_angle="180" background_position="center center" background_repeat="no-repeat" fade="no" background_parallax="none" enable_mobile="no" parallax_speed="0.3" background_blend_mode="none" video_aspect_ratio="16:9" video_loop="yes" video_mute="yes" container_tag="section" absolute="off" absolute_devices="small,medium,large" sticky="off" sticky_devices="small-visibility,medium-visibility,large-visibility" sticky_transition_offset="0" scroll_offset="0" an
[video src="http://iandevlin.github.io/mdn/video-player-with-captions/video/sintel-short.mp4"][/video]
[embed]http://iandevlin.github.io/mdn/video-player-with-captions/video/sintel-short.mp4[/embed]
[video src="http://iandevlin.github.io/mdn/video-player-with-captions/video/sintel-short.mp4" preload="auto"]
<track srclang="en" label="English" kind="subtitles" src="https://www.stphnwlkr.co/wp-content/uploads/2017/11/sintel-en.vtt" default>
<track srclang="es" label="Spanish" kind="subtitles" src="https://www.stphnwlkr.co/wp-content/uploads/2017/11/sintel-es.vtt" />
[/video]
<cfset org = application.jobs.getOrgList()>
<cfset orglist = org.CodeList >
<cfoutput>
<form>
<label for="org_list">Organizations</label>
<select name="org_list">
<cfloop array="#orglist#" index="occ">
<cfset orgData = occ.ValidValue>
<cfloop array="#orgData#" index="data">
<cfif data.isDisabled eq 'no' and len(trim(data.code)) eq 2 >
<cfset org = application.jobs.getOrgList()>
<cfset orglist = org.CodeList >
<cfoutput>
<cfloop array="#orglist#" index="occ">
<cfset orgData = occ.ValidValue>
<cfloop array="#orgData#" index="data">
#data.Code# - #data.Value#
</cfloop>
</cfloop>
remote any function getOrgList(){
cfhttp(url="https://data.usajobs.gov/api/codelist/agencysubelements", result="orgs", method="get"){
cfhttpparam(type='header',name='Content-Type',value='application/json');
}
return deserializeJSON(orgs.filecontent);
}
cfhttp(url="https://data.usajobs.gov/api/codelist/agencysubelements", result="orgs", method="get"){
cfhttpparam(type='header',name='Content-Type',value='application/json');
}