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
class UtilityController extends BaseController { | |
public function upload() | |
{ | |
$file = Input::file('Filedata'); | |
$name = Date("now").'-'.$file->getClientOriginalName(); | |
$uploadSuccess = $file->move(public_path().'/uploads',$name); | |
if( $uploadSuccess ) { | |
return Response::json(array( | |
"status"=>"200", |
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
app.directive('scrollTo', ['$document',function ($document) { | |
var body = $($document[0].body); | |
return function (scope, element, attributes) { | |
var target = angular.element(attributes.scrollTo); | |
setTimeout(function () { | |
element.bind('click touchstart', function(e) { | |
e.preventDefault(); | |
body.animate({scrollTop:target.offset().top},2000); | |
}); | |
}); |
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
@mixin perfectTableBorders($color, $width){ | |
tr{&:last-child{border-bottom: $width solid $color;} | |
border-top: $width solid $color; | |
} | |
td{&:first-child{border-left: $width solid $color;} | |
border-right: $width solid $color; | |
} | |
} |
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
With Bootstrap 4 values: | |
@mixin breakpoint($point) { | |
@if $point == sm { | |
@media (min-width: 576px) { @content; } | |
} | |
@if $point == md { | |
@media (min-width: 768px) { @content; } | |
} | |
@else if $point == lg { |