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
class UserListActivity : AppCompatActivity() { | |
@Inject internal lateinit var viewModelFactory: ViewModelProvider.Factory | |
private lateinit var userListViewModel: UserListViewModel | |
private lateinit var swipeRefreshLayout: SwipeRefreshLayout | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) |
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
/* Place this code in your JS file */ | |
jQuery(document).ready(function($){ | |
// browser window scroll (in pixels) after which the "back to top" link is shown | |
var offset = 300, | |
//browser window scroll (in pixels) after which the "back to top" link opacity is reduced | |
offset_opacity = 1200, | |
//duration of the top scrolling animation (in ms) | |
scroll_top_duration = 3500, | |
//grab the "back to top" link | |
$back_to_top = $('.cd-top'); |
NewerOlder