Skip to content

Commit 888c07a

Browse files
committed
updatessssss
1 parent ca8dd02 commit 888c07a

File tree

10 files changed

+32
-24
lines changed

10 files changed

+32
-24
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
application/config/config_custom_test.php
2-
.htaccess
3-
robots.txt
4-
favicon.png
2+
/.htaccess
3+
/robots.txt
4+
/favicon.png

application/modules/ajax-repos/controllers/Homepage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function __construct()
1313
parent::__construct();
1414

1515
$this->CI =& get_instance();
16-
$this->CI->config->load('config_custom');
16+
$this->CI->config->load('config_custom_test');
1717
}
1818

1919
function index()

application/modules/ajax-repos/views/homepage.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<div class="row">
2929
<div class="nine wide column left aligned">
3030
<div class="ui center aligned stackable page grid">
31-
<button class="ui teal massive left labeled icon button" id="get_repos_ajax"><i class="github square icon"></i>Get Repository with Ajax</button><br>
31+
<button class="get_repos ui teal massive left labeled icon button cmd"><i class="github square icon"></i>Get Repository with Ajax</button><br>
3232
<div class="ui pointing below green" id="repos_count" style="margin-top: 0.5em;"></div>
3333
</div>
3434
<div class="ui styled fluid accordion" id="repo_list" style="box-shadow: none;margin-top: 1em;">
@@ -39,23 +39,27 @@
3939
</div>
4040

4141
<script>
42-
$("#get_repos_ajax").click(function() {
42+
$(".get_repos").click(function() {
4343
$.ajax({
4444
type: "GET",
4545
url: "https://api.github.com/users/<?php echo $this->CI->config->item('github_username'); ?>/repos",
4646
dataType: "json",
4747
success: function(result) {
4848
for( i in result ) {
4949
$("#repo_list").append(
50-
"<div class='title'><i class='dropdown icon'></i>" + result[i].name + "<p class='ui blue tag label' style='float: right;'>" + result[i].language + "</p></div><div class='content'><p>" + result[i].description + "</p><p class='ui label purple'><i class='fork icon'></i> " + result[i].forks_count + "</p><p class='ui label purple'><i class='star icon'></i> " + result[i].stargazers_count + "</p><a class='ui red label' target='_blank' href='" + result[i].html_url + "'>Go to Repository</a></div>"
50+
"<div class='title'><i class='dropdown icon'></i>" + result[i].name + "<p class='ui blue tag label' style='float: right;'>" + result[i].language + "</p></div><div class='content'><p>" + result[i].description + "</p><p class='ui label purple'><i class='fork icon'></i> " + result[i].forks_count + "</p><p class='ui label purple'><i class='star icon'></i> " + result[i].stargazers_count + "</p><div class='ui mini labeled input' style='width:100%;margin-top:1em;'><div class='ui label'><i class='lock icon' style='color:#5bbd72;'> https://</i></div><input type='text' value='github.com/" + result[i].full_name + "'></div></div>"
5151
);
52-
console.log("i: " + i);
52+
// For debug result by ID
53+
// console.log("i: " + i);
5354
}
5455
console.log(result);
56+
$('.cmd').removeClass('loading');
57+
$('.cmd').addClass('disabled');
5558
$('.ui.pointing.green').addClass('label');
5659
$("#repos_count").append("Total " + result.length + " Repository");
5760
}
5861
});
62+
$('.cmd').addClass('loading');
5963
});
6064
</script>
6165
<?php $this->load->view('must/footer'); ?>

application/modules/ajax-repos/views/must/head.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
<meta name="description" content="<?php echo $this->CI->config->item('description'); ?>">
1111
<meta name="keywords" content="<?php echo $this->CI->config->item('keywords'); ?>">
1212
<link rel="icon" href="<?php echo base_url('favicon.png'); ?>">
13-
<link rel="stylesheet" href="<?php echo base_url('bower_components/Semantic-UI/dist/semantic.css'); ?>">
13+
<link rel="stylesheet" href="<?php echo base_url('bower_components/Semantic-UI/dist/semantic.min.css'); ?>">
1414
<link rel="stylesheet" href="<?php echo base_url('bower_components/Semantic-UI/examples/homepage.css'); ?>">
15-
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.js"></script>
16-
<script src="<?php echo base_url('bower_components/Semantic-UI/dist/semantic.js'); ?>"></script>
15+
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
16+
<script src="<?php echo base_url('bower_components/Semantic-UI/dist/semantic.min.js'); ?>"></script>
1717
<script src="<?php echo base_url('bower_components/Semantic-UI/examples/homepage.js'); ?>"></script>
1818
</head>

application/modules/menu-version-1/controllers/Homepage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function __construct()
1313
parent::__construct();
1414

1515
$this->CI =& get_instance();
16-
$this->CI->config->load('config_custom');
16+
$this->CI->config->load('config_custom_test');
1717
}
1818

1919
function index()

application/modules/menu-version-1/views/must/head.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
<meta name="description" content="<?php echo $this->CI->config->item('description'); ?>">
1111
<meta name="keywords" content="<?php echo $this->CI->config->item('keywords'); ?>">
1212
<link rel="icon" href="<?php echo base_url('favicon.png'); ?>">
13-
<link rel="stylesheet" href="<?php echo base_url('bower_components/Semantic-UI/dist/semantic.css'); ?>">
13+
<link rel="stylesheet" href="<?php echo base_url('bower_components/Semantic-UI/dist/semantic.min.css'); ?>">
1414
<link rel="stylesheet" href="<?php echo base_url('bower_components/Semantic-UI/examples/homepage.css'); ?>">
15-
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.js"></script>
16-
<script src="<?php echo base_url('bower_components/Semantic-UI/dist/semantic.js'); ?>"></script>
15+
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
16+
<script src="<?php echo base_url('bower_components/Semantic-UI/dist/semantic.min.js'); ?>"></script>
1717
<script src="<?php echo base_url('bower_components/Semantic-UI/examples/homepage.js'); ?>"></script>
1818
</head>

application/modules/public/controllers/Homepage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function __construct()
1313
parent::__construct();
1414

1515
$this->CI =& get_instance();
16-
$this->CI->config->load('config_custom');
16+
$this->CI->config->load('config_custom_test');
1717
}
1818

1919
function index()

application/modules/public/views/homepage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="column">
66
<?php $this->load->view('must/menu'); ?>
77
<i class="red icon code force"></i>
8-
<div class="ui hidden transition information">
8+
<div class="ui hidden transition information force">
99
<h1 class="none ui inverted header">
1010
<?php echo $this->CI->config->item('website_name'); ?>
1111
</h1>

application/modules/public/views/must/head.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
<meta name="description" content="<?php echo $this->CI->config->item('description'); ?>">
1111
<meta name="keywords" content="<?php echo $this->CI->config->item('keywords'); ?>">
1212
<link rel="icon" href="<?php echo base_url('favicon.png'); ?>">
13-
<link rel="stylesheet" href="<?php echo base_url('bower_components/Semantic-UI/dist/semantic.css'); ?>">
13+
<link rel="stylesheet" href="<?php echo base_url('bower_components/Semantic-UI/dist/semantic.min.css'); ?>">
1414
<link rel="stylesheet" href="<?php echo base_url('bower_components/Semantic-UI/examples/homepage.css'); ?>">
15-
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.js"></script>
16-
<script src="<?php echo base_url('bower_components/Semantic-UI/dist/semantic.js'); ?>"></script>
15+
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
16+
<script src="<?php echo base_url('bower_components/Semantic-UI/dist/semantic.min.js'); ?>"></script>
1717
<script src="<?php echo base_url('bower_components/Semantic-UI/examples/homepage.js'); ?>"></script>
1818
<script src="<?php echo base_url('bower_components/typed.js/dist/typed.min.js'); ?>"></script>
1919
</head>

bower_components/Semantic-UI/examples/homepage.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,7 @@ html {
144144
font-size: 1.5em;
145145
}
146146
#home .masthead.segment .information {
147-
/*margin-left: 170px;*/
148-
margin: 0;
147+
margin-left: 170px;
149148
}
150149

151150
#home .masthead.segment .image {
@@ -182,11 +181,16 @@ html {
182181
}
183182

184183
@media only screen and (max-width: 768px) {
185-
#home .masthead i.icon.code {
184+
#home .masthead i.icon.code.force {
186185
display: none;
187186
}
188187
}
189-
188+
@media only screen and (max-width : 768px) {
189+
#home .masthead.segment .information.force {
190+
/*margin-left: 170px;*/
191+
margin: 0;
192+
}
193+
}
190194
.text-editor-wrap {
191195
color: #1b1c1d;
192196
display: block;

0 commit comments

Comments
 (0)