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
import PropTypes from 'prop-types'; | |
import React, { Component } from 'react'; | |
import _ from 'lodash'; | |
import withStyles from 'isomorphic-style-loader/lib/withStyles'; | |
import ApplyCard from '../../components/ApplyCard'; | |
import Loader from '../../components/Loader'; | |
/* eslint-disable import/no-named-as-default */ | |
import style from './ApplicationDragContainer.scss'; | |
import { headerProps } from '../../dummyData/dummyData'; | |
import { TransitionMotion, presets, Motion, spring } from 'react-motion'; |
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
let programList = _.without( | |
_.flatten( | |
normalSchools.result.map(id => | |
normalSchools.entities.school[id].programs.result.map(programId => { | |
if (normalSchools.entities.school[id].programs.entities.program[programId].savedApplication) { | |
console.log(application); | |
return ( | |
{ | |
id: id, | |
programId: programId, |
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
$(".description-truncate").mouseenter(function() { | |
console.log('hit'); | |
tile = $(this).closest('.tile-container'); | |
if(!tile.hasClass('.tile-container-sketchpad')){ | |
clone = $(tile).clone(); | |
$(clone).attr("id",clone[0].id + "-clone"); // just in case we need this later, let's change the id | |
$(clone).addClass('tile-expand-clone'); | |
$(clone).find(".title").css({"color":"#ca062c"}); | |
$(clone).css({"position":"absolute"}); // important! position it absolute first! | |
$(clone).css($(tile).position()); // position the clone directly in front of the this tile |
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
<span class="step-links"> | |
{% if entries.has_previous %} | |
{% if entries.previous_page_number > 1 %} | |
<a href="?page=1"><<</a> | |
{% endif %} | |
<a href="?page={{ entries.previous_page_number }}"><</a> | |
{% endif %} | |
{% for i in entries.paginator.page_range %} | |
{% if entries.number < 3 %} | |
{% if i < 6 %} |
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
<div class="accordion-promo"> | |
<h2>Slip</h2> | |
<div class="accordion-promo-item"> | |
<div class="accordion-title"> | |
<span class="ico-icon-arrowDown rotateIcon "/> | |
<h3>The first announcement</h3> | |
</div> | |
<p class="accordion-description">Blah blittty blah blah! Blah blha habl </p> | |
</div> | |
<div class="accordion-promo-item"> |
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
function accordionToggle(){ | |
$(this).parent().parent().find('.rotateIcon').removeClass('rotateIcon'); | |
$('.accordion-description').not($(this).next()).slideUp(); | |
$(this).next().slideToggle(1000); | |
$(this).find('.ico-icon-arrowDown').toggleClass('rotateIcon'); | |
} | |
} |