Skip to content

Instantly share code, notes, and snippets.

@patrickdbakke
patrickdbakke / art-deco.scss
Created February 17, 2019 20:09
art-deco
@function decoArc($start, $finish, $colors){
$arc: ();
$len: length($colors);
$step: ($finish - $start)/$len;
@for $i from 1 through $len {
$percent: $start + $step * ($i - 1);
$arc: append($arc, nth($colors, $i) $percent);
@if ($i + 1 <= $len) {
$percent: $start + ($finish - $start)/$len * $i;
@if($i % 2 == 0){
$post = array_merge($this->input->post()?$this->input->post():array(),$this->input->get()?$this->input->get():array());
$dataB = array();
$accepted_fields = array('showGwsConfirm', 'showReportWelcome', 'showUnentitledHistDate',
'showNonFinancialHistData', 'showAdvSearchWarning', 'showPortfolioModalWarning',
'showViewModalWarning', 'showExcelExportWarning', 'showAlertShareDeclineWarning',
'showAlertEventDeleteWarning', 'showManageAlertModalWarning', 'showBarChartWarning');
foreach($post as $key => $val){
if(in_array($key, $accepted_fields)){
$dataB[$key] = $val;
}